aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2021-10-17 13:42:16 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-10-17 21:47:27 +0200
commit30aa08da35e07a51a81d489517a3f6fb5164b09c (patch)
tree123f1124dce432f96c82bfa9e0015576b6cbf74a /drivers/clocksource
parentclocksource/drivers/arm_arch_timer: Move MMIO timer programming over to CVAL (diff)
downloadwireguard-linux-30aa08da35e07a51a81d489517a3f6fb5164b09c.tar.xz
wireguard-linux-30aa08da35e07a51a81d489517a3f6fb5164b09c.zip
clocksource/drivers/arm_arch_timer: Advertise 56bit timer to the core code
Proudly tell the code code that we have a timer able to handle 56 bits deltas. Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20211017124225.3018098-9-maz@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/arm_arch_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index f4db3a65bc79..36e091412151 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -834,7 +834,7 @@ static void __arch_timer_setup(unsigned type,
clk->set_state_shutdown(clk);
- clockevents_config_and_register(clk, arch_timer_rate, 0xf, 0x7fffffff);
+ clockevents_config_and_register(clk, arch_timer_rate, 0xf, CLOCKSOURCE_MASK(56));
}
static void arch_timer_evtstrm_enable(int divider)