]> git.hungrycats.org Git - linux/commitdiff
[ACPI] fix passive cooling mode indicator (Luming Yu)
authorLen Brown <len.brown@intel.com>
Thu, 17 Jun 2004 19:00:08 +0000 (15:00 -0400)
committerLen Brown <lenb@dhcppc3.>
Thu, 17 Jun 2004 19:00:08 +0000 (15:00 -0400)
http://bugzilla.kernel.org/show_bug.cgi?id=1770

drivers/acpi/thermal.c

index 00c80593ab17152f506ca8fb725736ae252bed48..7b94ac0813fa1d71184893d50a1fe070864b9a81 100644 (file)
@@ -289,6 +289,13 @@ acpi_thermal_set_cooling_mode (
        status = acpi_get_handle(tz->handle, "_SCP", &handle);
        if (ACPI_FAILURE(status)) {
                ACPI_DEBUG_PRINT((ACPI_DB_INFO, "_SCP not present\n"));
+               status = acpi_get_handle(tz->handle, "_PSV", &handle);
+               if(!ACPI_FAILURE(status)) {
+                       tz->cooling_mode = 1;
+                       ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Cooling mode [%s]\n", 
+                               mode?"passive":"active"));
+                       return_VALUE(0);
+               }
                return_VALUE(-ENODEV);
        }