arm64/arch_timer: Fix MMIO byteswap
authorPeter Zijlstra <peterz@infradead.org>
Tue, 6 Jun 2023 08:06:14 +0000 (10:06 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 6 Jun 2023 08:19:51 +0000 (10:19 +0200)
commit5416bf1cf5602ab3a38b4c0d15ccec1ca4199633
tree7656e26e66a750a46986ada4d99f0d670bc01417
parent7d0583cf9ec7bf8e5897dc7d3a7059e8fae5464a
arm64/arch_timer: Fix MMIO byteswap

The readl_relaxed() to __raw_readl() change meant to loose the
instrumentation, but also (inadvertently) lost the byteswap.

Fixes: 24ee7607b286 ("arm64/arch_timer: Provide noinstr sched_clock_read() functions")
Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lkml.kernel.org/r/20230606080614.GB905437@hirez.programming.kicks-ass.net
drivers/clocksource/arm_arch_timer.c