aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/process.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 14ae10031ff0..aa524da03bba 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -336,6 +336,18 @@ void cpu_idle(void)
336 local_touch_nmi(); 336 local_touch_nmi();
337 local_irq_disable(); 337 local_irq_disable();
338 338
339 /*
340 * We detected in the wakeup path that the
341 * tick broadcast device expired for us, but
342 * we raced with the other CPU and came back
343 * here before it was able to fire the IPI.
344 * No point in going idle.
345 */
346 if (tick_check_broadcast_expired()) {
347 local_irq_enable();
348 continue;
349 }
350
339 enter_idle(); 351 enter_idle();
340 352
341 /* Don't trace irqs off for idle */ 353 /* Don't trace irqs off for idle */