|
@@ -319,6 +319,13 @@ static u64 notrace arm64_858921_read_cntvct_el0(void)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+#ifdef CONFIG_ARM64_ERRATUM_1188873
|
|
|
+static u64 notrace arm64_1188873_read_cntvct_el0(void)
|
|
|
+{
|
|
|
+ return read_sysreg(cntvct_el0);
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef CONFIG_ARM_ARCH_TIMER_OOL_WORKAROUND
|
|
|
DEFINE_PER_CPU(const struct arch_timer_erratum_workaround *, timer_unstable_counter_workaround);
|
|
|
EXPORT_SYMBOL_GPL(timer_unstable_counter_workaround);
|
|
@@ -408,6 +415,14 @@ static const struct arch_timer_erratum_workaround ool_workarounds[] = {
|
|
|
.read_cntvct_el0 = arm64_858921_read_cntvct_el0,
|
|
|
},
|
|
|
#endif
|
|
|
+#ifdef CONFIG_ARM64_ERRATUM_1188873
|
|
|
+ {
|
|
|
+ .match_type = ate_match_local_cap_id,
|
|
|
+ .id = (void *)ARM64_WORKAROUND_1188873,
|
|
|
+ .desc = "ARM erratum 1188873",
|
|
|
+ .read_cntvct_el0 = arm64_1188873_read_cntvct_el0,
|
|
|
+ },
|
|
|
+#endif
|
|
|
};
|
|
|
|
|
|
typedef bool (*ate_match_fn_t)(const struct arch_timer_erratum_workaround *,
|