]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86-64: Fix interrupt race in idle callback (3rd try)
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Thu, 7 Dec 2006 01:14:13 +0000 (02:14 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Thu, 7 Dec 2006 01:14:13 +0000 (02:14 +0100)
commitd331e739f5ad2aaa9d8553891ba6ca823bdbce37
tree5da7042a022dd119c9b920ceb4101e7203bccb44
parenta0429d0d7a6116dedcb71d9128da904bf135f189
[PATCH] x86-64: Fix interrupt race in idle callback (3rd try)

Idle callbacks has some races when enter_idle() sets isidle and subsequent
interrupts that can happen on that CPU, before CPU goes to idle. Due to this,
an IDLE_END can get called before IDLE_START. To avoid these races, disable
interrupts before enter_idle and make sure that all idle routines do not
enable interrupts before entering idle.

Note that poll_idle() still has a this race as it has to enable interrupts
before going to idle. But, all other idle routines have the race fixed.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/process.c
include/asm-x86_64/processor.h