diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-05-07 13:59:50 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-05-08 06:35:06 -0400 |
commit | bbe78cbd729f85c4da6e04f45c8b2de43c3573f1 (patch) | |
tree | 41770e965d9724f4059cf20f03c1afc056900e7d /arch/ia64 | |
parent | 448eca90932d97856b6a6097fc50eef96d77dec0 (diff) |
ia64: Remove unused cpu_idle_wait()
IA64 does not set CONFIG_ARCH_HAVE_IDLE_WAIT and cpuidle uses a
generic function now. Remove the unused code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tony Luck <tony.luck@intel.com>
Link: http://lkml.kernel.org/r/20120507175652.392394511@linutronix.de
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/include/asm/processor.h | 1 | ||||
-rw-r--r-- | arch/ia64/kernel/process.c | 20 |
2 files changed, 0 insertions, 21 deletions
diff --git a/arch/ia64/include/asm/processor.h b/arch/ia64/include/asm/processor.h index 483f6c6a4238..f92f67aba618 100644 --- a/arch/ia64/include/asm/processor.h +++ b/arch/ia64/include/asm/processor.h | |||
@@ -723,7 +723,6 @@ extern unsigned long boot_option_idle_override; | |||
723 | enum idle_boot_override {IDLE_NO_OVERRIDE=0, IDLE_HALT, IDLE_FORCE_MWAIT, | 723 | enum idle_boot_override {IDLE_NO_OVERRIDE=0, IDLE_HALT, IDLE_FORCE_MWAIT, |
724 | IDLE_NOMWAIT, IDLE_POLL}; | 724 | IDLE_NOMWAIT, IDLE_POLL}; |
725 | 725 | ||
726 | void cpu_idle_wait(void); | ||
727 | void default_idle(void); | 726 | void default_idle(void); |
728 | 727 | ||
729 | #define ia64_platform_is(x) (strcmp(x, platform_name) == 0) | 728 | #define ia64_platform_is(x) (strcmp(x, platform_name) == 0) |
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index ce74e143aea3..5e0e86ddb12f 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c | |||
@@ -273,26 +273,6 @@ static inline void play_dead(void) | |||
273 | } | 273 | } |
274 | #endif /* CONFIG_HOTPLUG_CPU */ | 274 | #endif /* CONFIG_HOTPLUG_CPU */ |
275 | 275 | ||
276 | static void do_nothing(void *unused) | ||
277 | { | ||
278 | } | ||
279 | |||
280 | /* | ||
281 | * cpu_idle_wait - Used to ensure that all the CPUs discard old value of | ||
282 | * pm_idle and update to new pm_idle value. Required while changing pm_idle | ||
283 | * handler on SMP systems. | ||
284 | * | ||
285 | * Caller must have changed pm_idle to the new value before the call. Old | ||
286 | * pm_idle value will not be used by any CPU after the return of this function. | ||
287 | */ | ||
288 | void cpu_idle_wait(void) | ||
289 | { | ||
290 | smp_mb(); | ||
291 | /* kick all the CPUs so that they exit out of pm_idle */ | ||
292 | smp_call_function(do_nothing, NULL, 1); | ||
293 | } | ||
294 | EXPORT_SYMBOL_GPL(cpu_idle_wait); | ||
295 | |||
296 | void __attribute__((noreturn)) | 276 | void __attribute__((noreturn)) |
297 | cpu_idle (void) | 277 | cpu_idle (void) |
298 | { | 278 | { |