Revert "tick: Prefer a lower rating device only if it's CPU local device"
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 9 Jul 2018 15:45:35 +0000 (16:45 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 10 Jul 2018 20:12:47 +0000 (22:12 +0200)
commit5b5ccbc2b041f98f26b984e013d303b7f9e6fb8e
treea29a2c70b8d1dd62580459e980f966fd4d2c8c40
parent1e4b044d22517cae7047c99038abb444423243ca
Revert "tick: Prefer a lower rating device only if it's CPU local device"

This reverts commit 1332a90558013ae4242e3dd7934bdcdeafb06c0d.

The original issue was not because of incorrect checking of cpumask for
both new and old tick device. It was incorrectly analysed was due to the
misunderstanding of the comment and misinterpretation of the return value
from tick_check_preferred. The main issue is with the clockevent driver
that sets the cpumask to cpu_all_mask instead of cpu_possible_mask.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/1531151136-18297-1-git-send-email-sudeep.holla@arm.com
kernel/time/tick-common.c