]> git.baikalelectronics.ru Git - kernel.git/commit
clockevents: prevent multiple init/shutdown
authorThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2008 21:37:08 +0000 (21:37 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 5 Sep 2008 09:11:52 +0000 (11:11 +0200)
commit1cf04cddce6e3a8f6402255132891cc48557764e
tree769385b50e512a3aafa8735be23c199bf83c56e7
parent2e590901f19246a9ea11d6ab6a4f143e3f2ace81
clockevents: prevent multiple init/shutdown

While chasing the C1E/HPET bugreports I went through the clock events
code inch by inch and found that the broadcast device can be initialized
and shutdown multiple times. Multiple shutdowns are not critical, but
useless waste of time. Multiple initializations are simply broken. Another
CPU might have the device in use already after the first initialization and
the second init could just render it unusable again.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/tick-broadcast.c