Skip to content

Commit f4e2e9a

Browse files
committed
xtensa: Use generic idle loop
Signed-off-by: Thomas Gleixner <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Rusty Russell <[email protected]> Cc: Paul McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Reviewed-by: Srivatsa S. Bhat <[email protected]> Cc: Magnus Damm <[email protected]> Acked-by: Chris Zankel <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 7d1a941 commit f4e2e9a

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

arch/xtensa/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ config XTENSA
1919
select CLONE_BACKWARDS
2020
select IRQ_DOMAIN
2121
select HAVE_OPROFILE
22+
select GENERIC_IDLE_LOOP
2223
help
2324
Xtensa processors are 32-bit RISC machines designed by Tensilica
2425
primarily for embedded systems. These processors are both

arch/xtensa/kernel/process.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,9 @@ void coprocessor_flush_all(struct thread_info *ti)
105105
/*
106106
* Powermanagement idle function, if any is provided by the platform.
107107
*/
108-
109-
void cpu_idle(void)
108+
void arch_cpu_idle(void)
110109
{
111-
local_irq_enable();
112-
113-
/* endless idle loop with no priority at all */
114-
while (1) {
115-
rcu_idle_enter();
116-
while (!need_resched())
117-
platform_idle();
118-
rcu_idle_exit();
119-
schedule_preempt_disabled();
120-
}
110+
platform_idle();
121111
}
122112

123113
/*

0 commit comments

Comments
 (0)