clockevents: Set noop handler in clockevents_exchange_device()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 2 Dec 2011 15:02:45 +0000 (16:02 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Dec 2011 15:07:23 +0000 (16:07 +0100)
commitde28f25e8244c7353abed8de0c7792f5f883588c
tree03f94969b51c454f5da2b52cc311e510c28c2080
parentc1be84309c58b1e7c6d626e28fba41a22b364c3d
clockevents: Set noop handler in clockevents_exchange_device()

If a device is shutdown, then there might be a pending interrupt,
which will be processed after we reenable interrupts, which causes the
original handler to be run. If the old handler is the (broadcast)
periodic handler the shutdown state might hang the kernel completely.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
kernel/time/clockevents.c