]> git.baikalelectronics.ru Git - kernel.git/commit
hrtimer: mark migration state
authorThomas Gleixner <tglx@linutronix.de>
Mon, 29 Sep 2008 13:44:46 +0000 (15:44 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 29 Sep 2008 15:09:14 +0000 (17:09 +0200)
commit1738e25eba130afcaf2c28f4d50dba91dcbb1993
treeaace17598caf3dfaa01f8f2f4c6e587bb1f9a2f8
parent577e6288ee8ef03aab5650d1ce54593aeffd3fe8
hrtimer: mark migration state

Impact: during migration active hrtimers can be seen as inactive

The migration code removes the hrtimers from the queues of the dead
CPU and sets the state temporary to INACTIVE. The enqueue code sets it
to ACTIVE/PENDING again.

Prevent that the wrong state can be seen by using a separate migration
state bit.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/hrtimer.h
kernel/hrtimer.c