diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ppc64/kernel/idle.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/arch/ppc64/kernel/idle.c b/arch/ppc64/kernel/idle.c index 69b7c22bad54..b8cfb37e5f14 100644 --- a/arch/ppc64/kernel/idle.c +++ b/arch/ppc64/kernel/idle.c | |||
@@ -37,8 +37,6 @@ | |||
37 | 37 | ||
38 | extern void power4_idle(void); | 38 | extern void power4_idle(void); |
39 | 39 | ||
40 | static int (*idle_loop)(void); | ||
41 | |||
42 | int default_idle(void) | 40 | int default_idle(void) |
43 | { | 41 | { |
44 | long oldval; | 42 | long oldval; |
@@ -127,42 +125,3 @@ register_powersave_nap_sysctl(void) | |||
127 | } | 125 | } |
128 | __initcall(register_powersave_nap_sysctl); | 126 | __initcall(register_powersave_nap_sysctl); |
129 | #endif | 127 | #endif |
130 | |||
131 | int idle_setup(void) | ||
132 | { | ||
133 | /* | ||
134 | * Move that junk to each platform specific file, eventually define | ||
135 | * a pSeries_idle for shared processor stuff | ||
136 | */ | ||
137 | #ifdef CONFIG_PPC_ISERIES | ||
138 | idle_loop = iSeries_idle; | ||
139 | return 1; | ||
140 | #else | ||
141 | idle_loop = default_idle; | ||
142 | #endif | ||
143 | #ifdef CONFIG_PPC_PSERIES | ||
144 | if (systemcfg->platform & PLATFORM_PSERIES) { | ||
145 | if (cur_cpu_spec->firmware_features & FW_FEATURE_SPLPAR) { | ||
146 | if (get_paca()->lppaca.shared_proc) { | ||
147 | printk(KERN_INFO "Using shared processor idle loop\n"); | ||
148 | idle_loop = shared_idle; | ||
149 | } else { | ||
150 | printk(KERN_INFO "Using dedicated idle loop\n"); | ||
151 | idle_loop = dedicated_idle; | ||
152 | } | ||
153 | } else { | ||
154 | printk(KERN_INFO "Using default idle loop\n"); | ||
155 | idle_loop = default_idle; | ||
156 | } | ||
157 | } | ||
158 | #endif /* CONFIG_PPC_PSERIES */ | ||
159 | #ifndef CONFIG_PPC_ISERIES | ||
160 | if (systemcfg->platform == PLATFORM_POWERMAC || | ||
161 | systemcfg->platform == PLATFORM_MAPLE) { | ||
162 | printk(KERN_INFO "Using native/NAP idle loop\n"); | ||
163 | idle_loop = native_idle; | ||
164 | } | ||
165 | #endif /* CONFIG_PPC_ISERIES */ | ||
166 | |||
167 | return 1; | ||
168 | } | ||