]> Pileus Git - ~andy/linux/blobdiff - kernel/time/tick-common.c
clockevents: Set dummy handler on CPU_DEAD shutdown
[~andy/linux] / kernel / time / tick-common.c
index 74413e396acc7793d424e8d341c5c37dba3c7dbc..6176a3e4570997ea3f5d366416e306ee61b800d0 100644 (file)
@@ -323,6 +323,7 @@ static void tick_shutdown(unsigned int *cpup)
                 */
                dev->mode = CLOCK_EVT_MODE_UNUSED;
                clockevents_exchange_device(dev, NULL);
+               dev->event_handler = clockevents_handle_noop;
                td->evtdev = NULL;
        }
        raw_spin_unlock_irqrestore(&tick_device_lock, flags);