Skip to content

Commit 97a5b81

Browse files
committed
x86: Fix idle consolidation fallout
The core code expects the arch idle code to return with interrupts enabled. The conversion missed two x86 cases which fail to do that. Reported-and-tested-by: Markus Trippelsdorf <markus@trippelsdorf.de> Tested-by: Borislav Petkov <bp@alien8.de> Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1305021557030.3972@ionos Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 78d77df commit 97a5b81

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

arch/x86/kernel/process.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ void arch_cpu_idle(void)
312312
{
313313
if (cpuidle_idle_call())
314314
x86_idle();
315+
else
316+
local_irq_enable();
315317
}
316318

317319
/*
@@ -368,9 +370,6 @@ void amd_e400_remove_cpu(int cpu)
368370
*/
369371
static void amd_e400_idle(void)
370372
{
371-
if (need_resched())
372-
return;
373-
374373
if (!amd_e400_c1e_detected) {
375374
u32 lo, hi;
376375

0 commit comments

Comments
 (0)