mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
clocksource/drivers/arm_arch_timer: Use stable count reader in erratum sne
[ Upstream commit d8cc3905b8073c7cfbff94af889fa8dc71f21dd5 ] In commit0ea415390c("clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters"), we separate stable and normal count reader to omit unnecessary overhead on systems that have no timer erratum. However, in erratum_set_next_event_tval_generic(), count reader becomes normal reader. This converts it to stable reader. Fixes:0ea415390c("clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters") Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Keqian Zhu <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
e223cf39b9
commit
b4219894d1
1 changed files with 2 additions and 2 deletions
|
|
@ -392,10 +392,10 @@ static void erratum_set_next_event_tval_generic(const int access, unsigned long
|
|||
ctrl &= ~ARCH_TIMER_CTRL_IT_MASK;
|
||||
|
||||
if (access == ARCH_TIMER_PHYS_ACCESS) {
|
||||
cval = evt + arch_counter_get_cntpct();
|
||||
cval = evt + arch_counter_get_cntpct_stable();
|
||||
write_sysreg(cval, cntp_cval_el0);
|
||||
} else {
|
||||
cval = evt + arch_counter_get_cntvct();
|
||||
cval = evt + arch_counter_get_cntvct_stable();
|
||||
write_sysreg(cval, cntv_cval_el0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue