]> git.baikalelectronics.ru Git - kernel.git/commit
tick: Prefer a lower rating device only if it's CPU local device
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 9 May 2018 16:02:08 +0000 (17:02 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 13 May 2018 13:07:41 +0000 (15:07 +0200)
commit2866eebbc11d30421a98c09fdc1059cec522224c
treed014f8916019bce5048c46b2b799fa52908770cd
parentfd8d6c4d1b0ed39c8179e3dbb084e343568b0414
tick: Prefer a lower rating device only if it's CPU local device

Checking the equality of cpumask for both new and old tick device doesn't
ensure that it's CPU local device. This will cause issue if a low rating
clockevent tick device is registered first followed by the registration
of higher rating clockevent tick device.

In such case, clockevents_released list will never get emptied as both
the devices get selected as preferred one and we will loop forever in
clockevents_notify_released.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: https://lkml.kernel.org/r/1525881728-4858-1-git-send-email-sudeep.holla@arm.com
kernel/time/tick-common.c