clocksource: Avoid clocksource watchdog circular locking dependency
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 18 Aug 2009 15:09:42 +0000 (17:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 19 Aug 2009 10:00:56 +0000 (12:00 +0200)
commit01548f4d3e8e94caf323a4f664eb347fd34a34ab
tree2717e7d4dd781be2d57737df96b074451090f3d9
parentd0981a1b21a03866c8da7f44e35e389c2e0d6061
clocksource: Avoid clocksource watchdog circular locking dependency

stop_machine from a multithreaded workqueue is not allowed because
of a circular locking dependency between cpu_down and the workqueue
execution. Use a kernel thread to do the clocksource downgrade.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: john stultz <johnstul@us.ibm.com>
LKML-Reference: <20090818170942.3ab80c91@skybase>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clocksource.c