Skip to content

Commit 31fa778

Browse files
ColinIanKingxdevs23
authored andcommitted
clocksource: only perform extended clocksource checks for AMD systems
Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Simão Gomes Viana <[email protected]>
1 parent a052f3c commit 31fa778

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

drivers/clocksource/acpi_pm.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,16 @@ static int verify_pmtmr_rate(void)
208208
static int __init init_acpi_pm_clocksource(void)
209209
{
210210
u64 value1, value2;
211-
unsigned int i, j = 0;
211+
unsigned int i, j = 0, checks = 1;
212212

213213
if (!pmtmr_ioport)
214214
return -ENODEV;
215215

216+
if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD)
217+
checks = ACPI_PM_MONOTONICITY_CHECKS;
218+
216219
/* "verify" this timing source: */
217-
for (j = 0; j < ACPI_PM_MONOTONICITY_CHECKS; j++) {
220+
for (j = 0; j < checks; j++) {
218221
udelay(100 * j);
219222
value1 = clocksource_acpi_pm.read(&clocksource_acpi_pm);
220223
for (i = 0; i < ACPI_PM_READ_CHECKS; i++) {

0 commit comments

Comments
 (0)