]> Pileus Git - ~andy/linux/commitdiff
xtensa: Use generic idle loop
authorThomas Gleixner <tglx@linutronix.de>
Thu, 21 Mar 2013 21:50:04 +0000 (22:50 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 8 Apr 2013 15:39:29 +0000 (17:39 +0200)
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: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Magnus Damm <magnus.damm@gmail.com>
Acked-by: Chris Zankel <chris@zankel.net>
Link: http://lkml.kernel.org/r/20130321215235.546600507@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/xtensa/Kconfig
arch/xtensa/kernel/process.c

index b09de49dbec5cf0a7d65590afc7c2a97158399bf..e0144ff4624d54cc30930a2ea0d6771111c2413a 100644 (file)
@@ -19,6 +19,7 @@ config XTENSA
        select CLONE_BACKWARDS
        select IRQ_DOMAIN
        select HAVE_OPROFILE
+       select GENERIC_IDLE_LOOP
        help
          Xtensa processors are 32-bit RISC machines designed by Tensilica
          primarily for embedded systems.  These processors are both
index 5cd82e9f601c15c75e13a5be9bd44f06d8409022..1c85323f01d7de73c2781b4b8b295ac98ceb6cb9 100644 (file)
@@ -105,19 +105,9 @@ void coprocessor_flush_all(struct thread_info *ti)
 /*
  * Powermanagement idle function, if any is provided by the platform.
  */
-
-void cpu_idle(void)
+void arch_cpu_idle(void)
 {
-       local_irq_enable();
-
-       /* endless idle loop with no priority at all */
-       while (1) {
-               rcu_idle_enter();
-               while (!need_resched())
-                       platform_idle();
-               rcu_idle_exit();
-               schedule_preempt_disabled();
-       }
+       platform_idle();
 }
 
 /*