Skip to content

Commit

Permalink
arm: Remove unused cpu_idle_wait()
Browse files Browse the repository at this point in the history
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: Russell King <linux@arm.linux.org.uk>
Link: http://lkml.kernel.org/r/20120507175652.260797846@linutronix.de
  • Loading branch information
Thomas Gleixner committed May 8, 2012
1 parent 85f7f65 commit 448eca9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
3 changes: 0 additions & 3 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ config ARCH_HAS_CPUFREQ
and that the relevant menu configurations are displayed for
it.

config ARCH_HAS_CPU_IDLE_WAIT
def_bool y

config GENERIC_HWEIGHT
bool
default y
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ unsigned long get_wchan(struct task_struct *p);
#define cpu_relax() barrier()
#endif

void cpu_idle_wait(void);

/*
* Create a new kernel thread
*/
Expand Down
20 changes: 0 additions & 20 deletions arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,26 +157,6 @@ EXPORT_SYMBOL(pm_power_off);
void (*arm_pm_restart)(char str, const char *cmd) = null_restart;
EXPORT_SYMBOL_GPL(arm_pm_restart);

static void do_nothing(void *unused)
{
}

/*
* cpu_idle_wait - Used to ensure that all the CPUs discard old value of
* pm_idle and update to new pm_idle value. Required while changing pm_idle
* handler on SMP systems.
*
* Caller must have changed pm_idle to the new value before the call. Old
* pm_idle value will not be used by any CPU after the return of this function.
*/
void cpu_idle_wait(void)
{
smp_mb();
/* kick all the CPUs so that they exit out of pm_idle */
smp_call_function(do_nothing, NULL, 1);
}
EXPORT_SYMBOL_GPL(cpu_idle_wait);

/*
* This is our default idle handler.
*/
Expand Down

0 comments on commit 448eca9

Please sign in to comment.