From: Andrew Morton Date: Thu, 15 Nov 2007 01:00:41 +0000 (-0800) Subject: x86: disable preemption in delay_tsc() X-Git-Tag: v2.6.24-rc3~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35d5d08a085c56f153458c3f5d8ce24123617faf;p=pandora-kernel.git x86: disable preemption in delay_tsc() Marin Mitov points out that delay_tsc() can misbehave if it is preempted and rescheduled on a different CPU which has a skewed TSC. Fix it by disabling preemption. (I assume that the worst-case behaviour here is a stall of 2^32 cycles) Cc: Andi Kleen Cc: Marin Mitov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed