clocksource/drivers/arm_arch_timer: limit XGene-1 workaround
[platform/kernel/linux-starfive.git] / drivers / clocksource / arm_arch_timer.c
index 7dd2c61..071b04f 100644 (file)
@@ -836,8 +836,9 @@ static u64 __arch_timer_check_delta(void)
                 * Note that TVAL is signed, thus has only 31 of its
                 * 32 bits to express magnitude.
                 */
-               MIDR_ALL_VERSIONS(MIDR_CPU_MODEL(ARM_CPU_IMP_APM,
-                                                APM_CPU_PART_POTENZA)),
+               MIDR_REV_RANGE(MIDR_CPU_MODEL(ARM_CPU_IMP_APM,
+                                             APM_CPU_PART_XGENE),
+                              APM_CPU_VAR_POTENZA, 0x0, 0xf),
                {},
        };