If the power management timer is unsupported the PmTimerLength value will

be zero.
This commit is contained in:
Andrew Turner 2015-05-06 14:09:54 +00:00
parent b347bc3b7a
commit ef74544931

View File

@ -128,7 +128,8 @@ acpi_timer_identify(driver_t *driver, device_t parent)
ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
if (acpi_disabled("timer") || (acpi_quirks & ACPI_Q_TIMER) ||
acpi_timer_dev || acpi_timer_disabled)
acpi_timer_dev || acpi_timer_disabled ||
AcpiGbl_FADT.PmTimerLength == 0)
return_VOID;
if ((dev = BUS_ADD_CHILD(parent, 2, "acpi_timer", 0)) == NULL) {