diff options
-rw-r--r-- | Documentation/kernel-parameters.txt | 4 | ||||
-rw-r--r-- | drivers/acpi/thermal.c | 17 |
2 files changed, 18 insertions, 3 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index ed7d7913af8c..52e1c2d26a25 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -1823,6 +1823,10 @@ and is between 256 and 4096 characters. It is defined in the file | |||
1823 | thermal.off= [HW,ACPI] | 1823 | thermal.off= [HW,ACPI] |
1824 | 1: disable ACPI thermal control | 1824 | 1: disable ACPI thermal control |
1825 | 1825 | ||
1826 | thermal.psv= [HW,ACPI] | ||
1827 | -1: disable all passive trip points | ||
1828 | <degrees C>: override all passive trip points to this value | ||
1829 | |||
1826 | thermal.tzp= [HW,ACPI] | 1830 | thermal.tzp= [HW,ACPI] |
1827 | Specify global default ACPI thermal zone polling rate | 1831 | Specify global default ACPI thermal zone polling rate |
1828 | <deci-seconds>: poll all this frequency | 1832 | <deci-seconds>: poll all this frequency |
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index b6b3bec84547..74e25be8abc9 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -82,6 +82,10 @@ static int off; | |||
82 | module_param(off, int, 0); | 82 | module_param(off, int, 0); |
83 | MODULE_PARM_DESC(off, "Set to disable ACPI thermal support.\n"); | 83 | MODULE_PARM_DESC(off, "Set to disable ACPI thermal support.\n"); |
84 | 84 | ||
85 | static int psv; | ||
86 | module_param(psv, int, 0644); | ||
87 | MODULE_PARM_DESC(psv, "Disable or override all passive trip points.\n"); | ||
88 | |||
85 | static int acpi_thermal_add(struct acpi_device *device); | 89 | static int acpi_thermal_add(struct acpi_device *device); |
86 | static int acpi_thermal_remove(struct acpi_device *device, int type); | 90 | static int acpi_thermal_remove(struct acpi_device *device, int type); |
87 | static int acpi_thermal_resume(struct acpi_device *device); | 91 | static int acpi_thermal_resume(struct acpi_device *device); |
@@ -343,9 +347,16 @@ static int acpi_thermal_get_trip_points(struct acpi_thermal *tz) | |||
343 | 347 | ||
344 | /* Passive: Processors (optional) */ | 348 | /* Passive: Processors (optional) */ |
345 | 349 | ||
346 | status = | 350 | if (psv == -1) { |
347 | acpi_evaluate_integer(tz->device->handle, "_PSV", NULL, | 351 | status = AE_SUPPORT; |
348 | &tz->trips.passive.temperature); | 352 | } else if (psv > 0) { |
353 | tz->trips.passive.temperature = CELSIUS_TO_KELVIN(psv); | ||
354 | status = AE_OK; | ||
355 | } else { | ||
356 | status = acpi_evaluate_integer(tz->device->handle, | ||
357 | "_PSV", NULL, &tz->trips.passive.temperature); | ||
358 | } | ||
359 | |||
349 | if (ACPI_FAILURE(status)) { | 360 | if (ACPI_FAILURE(status)) { |
350 | tz->trips.passive.flags.valid = 0; | 361 | tz->trips.passive.flags.valid = 0; |
351 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No passive threshold\n")); | 362 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No passive threshold\n")); |