]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86-64: Fix race in exit_idle
authorAndi Kleen <ak@suse.de>
Tue, 14 Nov 2006 15:57:46 +0000 (16:57 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 14 Nov 2006 15:57:46 +0000 (16:57 +0100)
commita4526c780d0146609767906510367acf09f8053a
treed253d9a0ae99c77f43ca271019fcbdbfd349b665
parent28fd9d31818fac4635cdbf0251b1a64896298258
[PATCH] x86-64: Fix race in exit_idle

When another interrupt happens in exit_idle the exit idle notifier
could be called an incorrect number of times.

Add a test_and_clear_bit_pda and use it handle the bit
atomically against interrupts to avoid this.

Pointed out by Stephane Eranian

Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/process.c
include/asm-x86_64/pda.h