]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
ARM: substitute arch_idle()
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 19 Dec 2011 08:03:58 +0000 (03:03 -0500)
committerNicolas Pitre <nico@fluxnic.net>
Fri, 20 Jan 2012 23:55:19 +0000 (18:55 -0500)
Now that all implementations of arch_idle() are equivalent to cpu_do_idle()
we can just use the later directly and stop including mach/system.h.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-and-tested-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
arch/arm/kernel/process.c
arch/arm/mach-mxs/pm.c
arch/arm/mach-omap2/pm44xx.c

index ba9e7ef92beccefb056e44d0def8d407586175f1..008e7ce766a758be5c76204be2399095485d6eea 100644 (file)
@@ -61,8 +61,6 @@ extern void setup_mm_for_reboot(void);
 
 static volatile int hlt_counter;
 
-#include <mach/system.h>
-
 void disable_hlt(void)
 {
        hlt_counter++;
@@ -191,7 +189,7 @@ static void default_idle(void)
        if (arm_pm_idle)
                arm_pm_idle();
        else
-               arch_idle();
+               cpu_do_idle();
        local_irq_enable();
 }
 
index fb042da29bda7f7d58f7a3bcff9556c4d423d177..a9b4bbcdafb41b87cf542fdeed22fe625bb9512d 100644 (file)
 #include <linux/kernel.h>
 #include <linux/suspend.h>
 #include <linux/io.h>
-#include <mach/system.h>
 
 static int mxs_suspend_enter(suspend_state_t state)
 {
        switch (state) {
        case PM_SUSPEND_MEM:
-               arch_idle();
+               cpu_do_idle();
                break;
 
        default:
index 62d4f36c57a6e23aa4139c5a251e4d5e46a22df5..c840689df24ae5256da6e81c4fd232d28fcf6fa2 100644 (file)
@@ -173,7 +173,7 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused)
  * omap_default_idle - OMAP4 default ilde routine.'
  *
  * Implements OMAP4 memory, IO ordering requirements which can't be addressed
- * with default arch_idle() hook. Used by all CPUs with !CONFIG_CPUIDLE and
+ * with default cpu_do_idle() hook. Used by all CPUs with !CONFIG_CPUIDLE and
  * by secondary CPU with CONFIG_CPUIDLE.
  */
 static void omap_default_idle(void)
@@ -253,7 +253,7 @@ static int __init omap4_pm_init(void)
        suspend_set_ops(&omap_pm_ops);
 #endif /* CONFIG_SUSPEND */
 
-       /* Overwrite the default arch_idle() */
+       /* Overwrite the default cpu_do_idle() */
        arm_pm_idle = omap_default_idle;
 
        omap4_idle_init();