OSDN Git Service

arm64: arch_timer: Save cntkctl_el1 as a per-cpu variable
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 4 Apr 2017 16:05:16 +0000 (17:05 +0100)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 13:45:15 +0000 (21:45 +0800)
commitc0ac9ad5fda3d490f8283941df3fb6ce7794b275
tree9701500140ffac766a6fed2b5cafd68fc7666a27
parent1285984cd13bfe730e4b8936858c1576316d5173
arm64: arch_timer: Save cntkctl_el1 as a per-cpu variable

As we're about to allow per CPU cntkctl_el1 configuration, we cannot
rely on the register value to be common when performing power
management.

Let's turn saved_cntkctl into a per-cpu variable.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/clocksource/arm_arch_timer.c