clocksource: exynos_mct: Increase priority over ARM arch timer
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 14 May 2018 07:06:03 +0000 (09:06 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Sep 2019 07:56:59 +0000 (09:56 +0200)
commit79a7f5375d50d358a376262b4aae51e5fd8b9921
tree55a3bd52415f7bf743b7ff3333845ef80d138f9f
parent5bdd86a7ada49c994ac86574f11a024df317374c
clocksource: exynos_mct: Increase priority over ARM arch timer

Exynos SoCs based on CA7/CA15 have 2 timer interfaces: custom Exynos MCT
(Multi Core Timer) and standard ARM Architected Timers.

There are use cases, where both timer interfaces are used simultanously.
One of such examples is using Exynos MCT for the main system timer and
ARM Architected Timers for the KVM and virtualized guests (KVM requires
arch timers).

Exynos Multi-Core Timer driver (exynos_mct) must be however started
before ARM Architected Timers (arch_timer), because they both share some
common hardware blocks (global system counter) and turning on MCT is
needed to get ARM Architected Timer working properly.

To ensure selecting Exynos MCT as the main system timer, increase MCT
timer rating. To ensure proper starting order of both timers during
suspend/resume cycle, increase MCT hotplug priority over ARM Archictected
Timers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/clocksource/exynos_mct.c