Skip to content

Commit 9944420

Browse files
committed
score: Use generic idle loop
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: Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Cc: Magnus Damm <magnus.damm@gmail.com> Cc: Lennox Wu <lennox.wu@gmail.com> Link: http://lkml.kernel.org/r/20130321215235.147909863@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 52c0065 commit 9944420

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

arch/score/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ config SCORE
1111
select ARCH_DISCARD_MEMBLOCK
1212
select GENERIC_CPU_DEVICES
1313
select GENERIC_CLOCKEVENTS
14+
select GENERIC_IDLE_LOOP
1415
select HAVE_MOD_ARCH_SPECIFIC
1516
select VIRT_TO_BUS
1617
select MODULES_USE_ELF_REL

arch/score/kernel/process.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,6 @@ void machine_halt(void) {}
4141
/* If or when software machine-power-off is implemented, add code here. */
4242
void machine_power_off(void) {}
4343

44-
/*
45-
* The idle thread. There's no useful work to be
46-
* done, so just try to conserve power and have a
47-
* low exit latency (ie sit in a loop waiting for
48-
* somebody to say that they'd like to reschedule)
49-
*/
50-
void __noreturn cpu_idle(void)
51-
{
52-
/* endless idle loop with no priority at all */
53-
while (1) {
54-
rcu_idle_enter();
55-
while (!need_resched())
56-
barrier();
57-
rcu_idle_exit();
58-
schedule_preempt_disabled();
59-
}
60-
}
61-
6244
void ret_from_fork(void);
6345
void ret_from_kernel_thread(void);
6446

0 commit comments

Comments
 (0)