提交 c1be8430 编写于 作者: T Thomas Gleixner

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: NThomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
上级 b1f91966
...@@ -71,7 +71,7 @@ int tick_check_broadcast_device(struct clock_event_device *dev) ...@@ -71,7 +71,7 @@ int tick_check_broadcast_device(struct clock_event_device *dev)
(dev->features & CLOCK_EVT_FEAT_C3STOP)) (dev->features & CLOCK_EVT_FEAT_C3STOP))
return 0; return 0;
clockevents_exchange_device(NULL, dev); clockevents_exchange_device(tick_broadcast_device.evtdev, dev);
tick_broadcast_device.evtdev = dev; tick_broadcast_device.evtdev = dev;
if (!cpumask_empty(tick_get_broadcast_mask())) if (!cpumask_empty(tick_get_broadcast_mask()))
tick_broadcast_start_periodic(dev); tick_broadcast_start_periodic(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册