mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Thomas Gleixner: "A single bugfix which prevents that a non functional timer device is selected to provide the fallback device, which is supposed to serve timer interrupts on behalf of non functional devices ..." * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: clockevents: Don't allow dummy broadcast timers
This commit is contained in:
commit
a12183c627
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ static void tick_broadcast_start_periodic(struct clock_event_device *bc)
|
||||||
*/
|
*/
|
||||||
int tick_check_broadcast_device(struct clock_event_device *dev)
|
int tick_check_broadcast_device(struct clock_event_device *dev)
|
||||||
{
|
{
|
||||||
if ((tick_broadcast_device.evtdev &&
|
if ((dev->features & CLOCK_EVT_FEAT_DUMMY) ||
|
||||||
|
(tick_broadcast_device.evtdev &&
|
||||||
tick_broadcast_device.evtdev->rating >= dev->rating) ||
|
tick_broadcast_device.evtdev->rating >= dev->rating) ||
|
||||||
(dev->features & CLOCK_EVT_FEAT_C3STOP))
|
(dev->features & CLOCK_EVT_FEAT_C3STOP))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue