clocksource: Call clocksource_change_rating() outside of watchdog_lock
authorThomas Gleixner <tglx@linutronix.de>
Sat, 15 Aug 2009 11:20:42 +0000 (13:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 15 Aug 2009 11:20:42 +0000 (13:20 +0200)
commit6ea41d252f35465a2308a4038a323b6b07de06f6
tree50315e593c1eacd4c0ebbe5abb1919bdb0302943
parent23970e389e9cee43c4b41023935e1417271708b2
clocksource: Call clocksource_change_rating() outside of watchdog_lock

The changes to the watchdog logic introduced a lock inversion between
watchdog_lock and clocksource_mutex. Change the rating outside of
watchdog_lock to avoid it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clocksource.c