Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c64621b authored by Marc Zyngier's avatar Marc Zyngier
Browse files

arm64: arch_timer: Make workaround methods optional



Not all errata need to workaround all access types. Allow them to
be optional.

Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent 01d3e3ff
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -60,7 +60,8 @@ extern const struct arch_timer_erratum_workaround *timer_unstable_counter_workar
#define arch_timer_reg_read_stable(reg) 		\
({							\
	u64 _val;					\
	if (needs_unstable_timer_counter_workaround())		\
	if (needs_unstable_timer_counter_workaround() &&		\
	    timer_unstable_counter_workaround->read_##reg)		\
		_val = timer_unstable_counter_workaround->read_##reg();	\
	else						\
		_val = read_sysreg(reg);		\