Skip to content

Commit a123322

Browse files
committed
alpha: Use generic idle loop
The core provides a generic idle poll 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: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Link: http://lkml.kernel.org/r/20130321215233.766017538@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent fa35e42 commit a123322

3 files changed

Lines changed: 2 additions & 21 deletions

File tree

‎arch/alpha/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ config ALPHA
1717
select ARCH_WANT_IPC_PARSE_VERSION
1818
select ARCH_HAVE_NMI_SAFE_CMPXCHG
1919
select GENERIC_SMP_IDLE_THREAD
20+
select GENERIC_IDLE_LOOP
2021
select GENERIC_CMOS_UPDATE
2122
select GENERIC_STRNCPY_FROM_USER
2223
select GENERIC_STRNLEN_USER

‎arch/alpha/kernel/process.c‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,6 @@
4646
void (*pm_power_off)(void) = machine_power_off;
4747
EXPORT_SYMBOL(pm_power_off);
4848

49-
void
50-
cpu_idle(void)
51-
{
52-
current_thread_info()->status |= TS_POLLING;
53-
54-
while (1) {
55-
/* FIXME -- EV6 and LCA45 know how to power down
56-
the CPU. */
57-
58-
rcu_idle_enter();
59-
while (!need_resched())
60-
cpu_relax();
61-
62-
rcu_idle_exit();
63-
schedule_preempt_disabled();
64-
}
65-
}
66-
67-
6849
struct halt_info {
6950
int mode;
7051
char *restart_cmd;

‎arch/alpha/kernel/smp.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ smp_callin(void)
167167
cpuid, current, current->active_mm));
168168

169169
preempt_disable();
170-
/* Do nothing. */
171-
cpu_idle();
170+
cpu_startup_entry(CPUHP_ONLINE);
172171
}
173172

174173
/* Wait until hwrpb->txrdy is clear for cpu. Return -1 on timeout. */

0 commit comments

Comments
 (0)