]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] hrtimers: fix reprogramming SMP race
authorIngo Molnar <mingo@elte.hu>
Wed, 28 Mar 2007 11:17:18 +0000 (13:17 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 28 Mar 2007 20:44:31 +0000 (13:44 -0700)
commit66c2cc945e789e281dc72dfdfc451d668f8b7242
tree3f995412e5be1a6180b37dde4e7e8cfeb2bc8665
parentbd824bc7ddd39e40eb60c10e090e0c2023c7b511
[PATCH] hrtimers: fix reprogramming SMP race

hrtimer_start() incorrectly set the 'reprogram' flag to enqueue_hrtimer(),
which should only be 1 if the hrtimer is queued to the current CPU.

Doing otherwise could result in a reprogramming of the current CPU's
clockevents device, with a timer that is not queued to it - resulting in a
bogus next expiry value.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/hrtimer.c