]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
commit9c17bcda991000351cb2373f78be7e4b1c44caa3
tree769385b50e512a3aafa8735be23c199bf83c56e7
parent7205656ab48da29a95d7f55e43a81db755d3cb3a
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