]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Wire up ARCH_HAS_DEFAULT_IDLE for cpuidle.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 2 Apr 2009 04:08:31 +0000 (13:08 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 2 Apr 2009 04:08:31 +0000 (13:08 +0900)
cpuidle wants ARCH_HAS_DEFAULT_IDLE defined in order to use the
default idle loop. So, make it accessible and enable it for all
sh machines.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig
arch/sh/include/asm/system.h
arch/sh/kernel/idle.c

index 2af949a6a8988accfd0d32a941402948e22bf667..6a1e79b886c194e66574c2644b06d825830d8382 100644 (file)
@@ -130,6 +130,9 @@ config ARCH_HAS_ILOG2_U64
 config ARCH_NO_VIRT_TO_BUS
        def_bool y
 
+config ARCH_HAS_DEFAULT_IDLE
+       def_bool y
+
 config IO_TRAPPED
        bool
 
index c9ec6af8e7456a387063bae8eecdbab52342f401..a88895e6dcb06009c4e85522c8f8e4ff3032dcf2 100644 (file)
@@ -153,6 +153,7 @@ extern unsigned long cached_to_uncached;
 extern struct dentry *sh_debugfs_root;
 
 void per_cpu_trap_init(void);
+void default_idle(void);
 
 asmlinkage void break_point_trap(void);
 
index fe59ccfc115287af6221bacb53f5ef5c6c0ee974..f35ed0348850639b394792e18e7518a71619e284 100644 (file)
@@ -38,7 +38,7 @@ static int __init hlt_setup(char *__unused)
 }
 __setup("hlt", hlt_setup);
 
-static void default_idle(void)
+void default_idle(void)
 {
        if (!hlt_counter) {
                clear_thread_flag(TIF_POLLING_NRFLAG);