From: Venkatesh Pallipadi Date: Thu, 7 Dec 2006 01:14:13 +0000 (+0100) Subject: [PATCH] x86-64: Fix interrupt race in idle callback (3rd try) X-Git-Tag: v2.6.20-rc1~145^2^2~8^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d331e739f5ad2aaa9d8553891ba6ca823bdbce37;p=pandora-kernel.git [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 Signed-off-by: Andi Kleen --- Reading git-diff-tree failed