clocksource/drivers/arm_arch_timer: Drop unnecessary ISB on CVAL programming
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 12:42:19 +0000 (13:42 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 17 Oct 2021 19:47:44 +0000 (21:47 +0200)
commitec8f7f3342c88780d682cc2464daf0fe43259c4f
tree864a230409e65b903c5545d332b1c0b308124ae3
parent41f8d02a6a558f80775bf61fe6312a14eeabbca0
clocksource/drivers/arm_arch_timer: Drop unnecessary ISB on CVAL programming

Switching from TVAL to CVAL has a small drawback: we need an ISB
before reading the counter. We cannot get rid of it, but we can
instead remove the one that comes just after writing to CVAL.

This reduces the number of ISBs from 3 to 2 when programming
the timer.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211017124225.3018098-12-maz@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
arch/arm/include/asm/arch_timer.h
arch/arm64/include/asm/arch_timer.h