Commit d232e9e8 authored by Philippe Gerum's avatar Philippe Gerum

sched: idle: ipipe: plug IRQ leak in default idle call

parent 4d64f935
......@@ -93,9 +93,12 @@ void __cpuidle default_idle_call(void)
if (current_clr_polling_and_test()) {
local_irq_enable_full();
} else {
stop_critical_timings();
arch_cpu_idle();
start_critical_timings();
if (ipipe_enter_cpuidle(NULL, NULL)) {
stop_critical_timings();
arch_cpu_idle();
start_critical_timings();
} else
local_irq_enable_full();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment