]> git.karo-electronics.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 02:44:42 +0000 (19:44 -0700)
commitffa4da2a25bb4ac08f710ac99827baf48a8f8d57
treeadca83cf87867d274ca24e61a46e4ec1a19ef1d4
parente73068458bf253c2e738cd55080c3a54c61037ef
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