]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clockevents: prevent multiple init/shutdown
authorThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2008 21:37:08 +0000 (21:37 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 03:23:04 +0000 (20:23 -0700)
commit7f0a673a75d3f9f50a64f83055b71be67526efd7
tree0cbb100a7f6aa95f30fe1d76d06a846808448cb9
parentea16e1b4b005e8a574efce13fb57d0fdbc543d67
clockevents: prevent multiple init/shutdown

commit 9c17bcda991000351cb2373f78be7e4b1c44caa3 upstream

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/time/tick-broadcast.c