watchdog: hpwdt (12/12): Make NMI decoding a compile-time option
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / processor_idle.c
index e9a8026d39f091444ddcf90446f008fc407cc9c8..b4c2f3bdadebc9ad6b23ce3ea1d2a8114b5c022f 100644 (file)
@@ -164,7 +164,7 @@ static void lapic_timer_check_state(int state, struct acpi_processor *pr,
        if (cpu_has(&cpu_data(pr->id), X86_FEATURE_ARAT))
                return;
 
-       if (boot_cpu_has(X86_FEATURE_AMDC1E))
+       if (c1e_detected)
                type = ACPI_STATE_C1;
 
        /*
@@ -264,7 +264,7 @@ int acpi_processor_resume(struct acpi_device * device)
        return 0;
 }
 
-#if defined (CONFIG_GENERIC_TIME) && defined (CONFIG_X86)
+#if defined(CONFIG_X86)
 static void tsc_check_state(int state)
 {
        switch (boot_cpu_data.x86_vendor) {