Skip to content
This repository
Browse code

tick-broadcast: Stop active broadcast device when replacing it

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>
Cc: stable@vger.kernel.org
  • Loading branch information...
commit c1be84309c58b1e7c6d626e28fba41a22b364c3d 1 parent b1f9196
Thomas Gleixner authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  kernel/time/tick-broadcast.c
2  kernel/time/tick-broadcast.c
@@ -71,7 +71,7 @@ int tick_check_broadcast_device(struct clock_event_device *dev)
71 71 (dev->features & CLOCK_EVT_FEAT_C3STOP))
72 72 return 0;
73 73
74   - clockevents_exchange_device(NULL, dev);
  74 + clockevents_exchange_device(tick_broadcast_device.evtdev, dev);
75 75 tick_broadcast_device.evtdev = dev;
76 76 if (!cpumask_empty(tick_get_broadcast_mask()))
77 77 tick_broadcast_start_periodic(dev);

0 comments on commit c1be843

Please sign in to comment.
Something went wrong with that request. Please try again.