diff options
Diffstat (limited to 'arch/ppc64/kernel/idle.c')
-rw-r--r-- | arch/ppc64/kernel/idle.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/idle.c b/arch/ppc64/kernel/idle.c index 08952c7e6216..e270055e73e2 100644 --- a/arch/ppc64/kernel/idle.c +++ b/arch/ppc64/kernel/idle.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <asm/iSeries/ItLpQueue.h> | 33 | #include <asm/iSeries/ItLpQueue.h> |
34 | #include <asm/plpar_wrappers.h> | 34 | #include <asm/plpar_wrappers.h> |
35 | #include <asm/systemcfg.h> | 35 | #include <asm/systemcfg.h> |
36 | #include <asm/machdep.h> | ||
36 | 37 | ||
37 | extern void power4_idle(void); | 38 | extern void power4_idle(void); |
38 | 39 | ||
@@ -122,7 +123,7 @@ static int iSeries_idle(void) | |||
122 | 123 | ||
123 | #else | 124 | #else |
124 | 125 | ||
125 | static int default_idle(void) | 126 | int default_idle(void) |
126 | { | 127 | { |
127 | long oldval; | 128 | long oldval; |
128 | unsigned int cpu = smp_processor_id(); | 129 | unsigned int cpu = smp_processor_id(); |
@@ -288,7 +289,7 @@ static int shared_idle(void) | |||
288 | 289 | ||
289 | #endif /* CONFIG_PPC_PSERIES */ | 290 | #endif /* CONFIG_PPC_PSERIES */ |
290 | 291 | ||
291 | static int native_idle(void) | 292 | int native_idle(void) |
292 | { | 293 | { |
293 | while(1) { | 294 | while(1) { |
294 | /* check CPU type here */ | 295 | /* check CPU type here */ |
@@ -308,7 +309,8 @@ static int native_idle(void) | |||
308 | 309 | ||
309 | void cpu_idle(void) | 310 | void cpu_idle(void) |
310 | { | 311 | { |
311 | idle_loop(); | 312 | BUG_ON(NULL == ppc_md.idle_loop); |
313 | ppc_md.idle_loop(); | ||
312 | } | 314 | } |
313 | 315 | ||
314 | int powersave_nap; | 316 | int powersave_nap; |