clocksource/drivers/arch_arm_timer: Move workaround synchronisation around
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 12:42:21 +0000 (13:42 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 18 Oct 2021 07:20:57 +0000 (09:20 +0200)
commitdb26f8f2da92471e9f7f71ec78d6fa455cd9c821
tree1715c6c9adac297727d725934b8a6568f52ea3ad
parentc1153d52c4140424a5e31a5916fca3edd91fe13a
clocksource/drivers/arch_arm_timer: Move workaround synchronisation around

We currently handle synchronisation when workarounds are enabled
by having an ISB in the __arch_counter_get_cnt?ct_stable() helpers.

While this works, this prevents us from relaxing this synchronisation.

Instead, move it closer to the point where the synchronisation is
actually needed. Further patches will subsequently relax this.

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