path: root/arch/alpha
diff options
authorPeter Zijlstra <>2020-11-20 11:50:35 +0100
committerPeter Zijlstra <>2020-11-24 16:47:35 +0100
commit58c644ba512cfbc2e39b758dd979edd1d6d00e27 (patch)
treeb632d972a2114cb536746cc4127d8d3ddf0f626c /arch/alpha
parent43be4388e94b915799a24f0eaf664bf95b85231f (diff)
sched/idle: Fix arch_cpu_idle() vs tracing
We call arch_cpu_idle() with RCU disabled, but then use local_irq_{en,dis}able(), which invokes tracing, which relies on RCU. Switch all arch_cpu_idle() implementations to use raw_local_irq_{en,dis}able() and carefully manage the lockdep,rcu,tracing state like we do in entry. (XXX: we really should change arch_cpu_idle() to not return with interrupts enabled) Reported-by: Sven Schnelle <> Signed-off-by: Peter Zijlstra (Intel) <> Reviewed-by: Mark Rutland <> Tested-by: Mark Rutland <> Link:
Diffstat (limited to 'arch/alpha')
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c
index 7462a7911002..4c7b0414a3ff 100644
--- a/arch/alpha/kernel/process.c
+++ b/arch/alpha/kernel/process.c
@@ -57,7 +57,7 @@ EXPORT_SYMBOL(pm_power_off);
void arch_cpu_idle(void)
- local_irq_enable();
+ raw_local_irq_enable();
void arch_cpu_idle_dead(void)