arm: Use generic idle loop
Use the generic idle loop and replace enable/disable_hlt with the respective core functions. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Paul McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Reviewed-by: Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Cc: Magnus Damm <magnus.damm@gmail.com> Cc: Russell King <linux@arm.linux.org.uk> Tested-by: Kevin Hilman <khilman@linaro.org> # OMAP Link: http://lkml.kernel.org/r/20130321215233.826238797@linutronix.de
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/cpu.h>
|
||||
|
||||
#include <asm/fncpy.h>
|
||||
#include <asm/system_misc.h>
|
||||
@@ -584,8 +585,7 @@ static void omap_pm_init_proc(void)
|
||||
static int omap_pm_prepare(void)
|
||||
{
|
||||
/* We cannot sleep in idle until we have resumed */
|
||||
disable_hlt();
|
||||
|
||||
cpu_idle_poll_ctrl(true);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -621,7 +621,7 @@ static int omap_pm_enter(suspend_state_t state)
|
||||
|
||||
static void omap_pm_finish(void)
|
||||
{
|
||||
enable_hlt();
|
||||
cpu_idle_poll_ctrl(false);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user