patch-2.4.23 linux-2.4.23/drivers/acpi/hardware/hwacpi.c

Next file: linux-2.4.23/drivers/acpi/namespace/nsdump.c
Previous file: linux-2.4.23/drivers/acpi/executer/exsystem.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/acpi/hardware/hwacpi.c linux-2.4.23/drivers/acpi/hardware/hwacpi.c
@@ -212,6 +212,15 @@
 	if (!acpi_gbl_FADT->smi_cmd)
 		return_VALUE (ACPI_SYS_MODE_ACPI);
 
+
+	/*
+	 * ACPI 2.0 clarified that if SMI_CMD in FADT is zero,
+	 * system does not support mode transition.
+	 */
+	if (!acpi_gbl_FADT->smi_cmd) {
+		return_VALUE (ACPI_SYS_MODE_ACPI);
+	}
+
 	status = acpi_get_register (ACPI_BITREG_SCI_ENABLE, &value, ACPI_MTX_LOCK);
 	if (ACPI_FAILURE (status)) {
 		return_VALUE (ACPI_SYS_MODE_LEGACY);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)