arm: Use generic idle loop
[deliverable/linux.git] / arch / arm / mach-shmobile / suspend.c
index 47d83f7a70b6065d2053730ad14237622fcdad7f..5d92b5dd486b0b9fd8d501aa3b69f56f96ae1ee2 100644 (file)
@@ -12,6 +12,8 @@
 #include <linux/suspend.h>
 #include <linux/module.h>
 #include <linux/err.h>
+#include <linux/cpu.h>
+
 #include <asm/io.h>
 #include <asm/system_misc.h>
 
@@ -23,13 +25,13 @@ static int shmobile_suspend_default_enter(suspend_state_t suspend_state)
 
 static int shmobile_suspend_begin(suspend_state_t state)
 {
-       disable_hlt();
+       cpu_idle_poll_ctrl(true);
        return 0;
 }
 
 static void shmobile_suspend_end(void)
 {
-       enable_hlt();
+       cpu_idle_poll_ctrl(false);
 }
 
 struct platform_suspend_ops shmobile_suspend_ops = {
This page took 0.024342 seconds and 5 git commands to generate.