Skip to content

Commit 491d3a9

Browse files
KAGA-KOKOgregkh
authored andcommitted
tick-broadcast: Stop active broadcast device when replacing it
commit c1be843 upstream. When a better rated broadcast device is installed, then the current active device is not disabled, which results in two running broadcast devices. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent fedb66b commit 491d3a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/time/tick-broadcast.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int tick_check_broadcast_device(struct clock_event_device *dev)
7171
(dev->features & CLOCK_EVT_FEAT_C3STOP))
7272
return 0;
7373

74-
clockevents_exchange_device(NULL, dev);
74+
clockevents_exchange_device(tick_broadcast_device.evtdev, dev);
7575
tick_broadcast_device.evtdev = dev;
7676
if (!cpumask_empty(tick_get_broadcast_mask()))
7777
tick_broadcast_start_periodic(dev);

0 commit comments

Comments
 (0)