diff options
Diffstat (limited to 'arch/powerpc/kernel/idle.c')
-rw-r--r-- | arch/powerpc/kernel/idle.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index 6d2209ac0c44..2099d9a879e8 100644 --- a/arch/powerpc/kernel/idle.c +++ b/arch/powerpc/kernel/idle.c | |||
@@ -113,29 +113,6 @@ void cpu_idle(void) | |||
113 | } | 113 | } |
114 | } | 114 | } |
115 | 115 | ||
116 | |||
117 | /* | ||
118 | * cpu_idle_wait - Used to ensure that all the CPUs come out of the old | ||
119 | * idle loop and start using the new idle loop. | ||
120 | * Required while changing idle handler on SMP systems. | ||
121 | * Caller must have changed idle handler to the new value before the call. | ||
122 | * This window may be larger on shared systems. | ||
123 | */ | ||
124 | void cpu_idle_wait(void) | ||
125 | { | ||
126 | int cpu; | ||
127 | smp_mb(); | ||
128 | |||
129 | /* kick all the CPUs so that they exit out of old idle routine */ | ||
130 | get_online_cpus(); | ||
131 | for_each_online_cpu(cpu) { | ||
132 | if (cpu != smp_processor_id()) | ||
133 | smp_send_reschedule(cpu); | ||
134 | } | ||
135 | put_online_cpus(); | ||
136 | } | ||
137 | EXPORT_SYMBOL_GPL(cpu_idle_wait); | ||
138 | |||
139 | int powersave_nap; | 116 | int powersave_nap; |
140 | 117 | ||
141 | #ifdef CONFIG_SYSCTL | 118 | #ifdef CONFIG_SYSCTL |