diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-12-02 16:02:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-09 09:21:52 -0800 |
commit | d88048a3d7b795e08def7519626496e1f2d3931b (patch) | |
tree | 590ee5a38cdca2a2067adbf3744049c805d2a912 | |
parent | 7a2d10ca36b5f50f5c34604c2c3c8bf371cb884f (diff) | |
download | linux-stable-d88048a3d7b795e08def7519626496e1f2d3931b.tar.gz linux-stable-d88048a3d7b795e08def7519626496e1f2d3931b.tar.bz2 linux-stable-d88048a3d7b795e08def7519626496e1f2d3931b.zip |
clockevents: Set noop handler in clockevents_exchange_device()
commit de28f25e8244c7353abed8de0c7792f5f883588c upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | kernel/time/clockevents.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c index 0d809ae02d60..b38baff61c04 100644 --- a/kernel/time/clockevents.c +++ b/kernel/time/clockevents.c @@ -221,6 +221,7 @@ void clockevents_exchange_device(struct clock_event_device *old, * released list and do a notify add later. */ if (old) { + old->event_handler = clockevents_handle_noop; clockevents_set_mode(old, CLOCK_EVT_MODE_UNUSED); list_del(&old->list); list_add(&old->list, &clockevents_released); |