diff options
-rw-r--r-- | Documentation/thermal/sysfs-api.txt | 20 | ||||
-rw-r--r-- | drivers/acpi/thermal.c | 6 |
2 files changed, 12 insertions, 14 deletions
diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt index 2ba4c9bb790a..c087dbcf3535 100644 --- a/Documentation/thermal/sysfs-api.txt +++ b/Documentation/thermal/sysfs-api.txt | |||
@@ -47,11 +47,11 @@ temperature) and throttle appropriate devices. | |||
47 | .bind: bind the thermal zone device with a thermal cooling device. | 47 | .bind: bind the thermal zone device with a thermal cooling device. |
48 | .unbind: unbind the thermal zone device with a thermal cooling device. | 48 | .unbind: unbind the thermal zone device with a thermal cooling device. |
49 | .get_temp: get the current temperature of the thermal zone. | 49 | .get_temp: get the current temperature of the thermal zone. |
50 | .get_mode: get the current mode (user/kernel) of the thermal zone. | 50 | .get_mode: get the current mode (enabled/disabled) of the thermal zone. |
51 | - "kernel" means thermal management is done in kernel. | 51 | - "enabled" means the kernel thermal management is enabled. |
52 | - "user" will prevent kernel thermal driver actions upon trip points | 52 | - "disabled" will prevent kernel thermal driver action upon trip points |
53 | so that user applications can take charge of thermal management. | 53 | so that user applications can take charge of thermal management. |
54 | .set_mode: set the mode (user/kernel) of the thermal zone. | 54 | .set_mode: set the mode (enabled/disabled) of the thermal zone. |
55 | .get_trip_type: get the type of certain trip point. | 55 | .get_trip_type: get the type of certain trip point. |
56 | .get_trip_temp: get the temperature above which the certain trip point | 56 | .get_trip_temp: get the temperature above which the certain trip point |
57 | will be fired. | 57 | will be fired. |
@@ -170,14 +170,14 @@ temp | |||
170 | RO, Required | 170 | RO, Required |
171 | 171 | ||
172 | mode | 172 | mode |
173 | One of the predefined values in [kernel, user]. | 173 | One of the predefined values in [enabled, disabled]. |
174 | This file gives information about the algorithm that is currently | 174 | This file gives information about the algorithm that is currently |
175 | managing the thermal zone. It can be either default kernel based | 175 | managing the thermal zone. It can be either default kernel based |
176 | algorithm or user space application. | 176 | algorithm or user space application. |
177 | kernel = Thermal management in kernel thermal zone driver. | 177 | enabled = enable Kernel Thermal management. |
178 | user = Preventing kernel thermal zone driver actions upon | 178 | disabled = Preventing kernel thermal zone driver actions upon |
179 | trip points so that user application can take full | 179 | trip points so that user application can take full |
180 | charge of the thermal management. | 180 | charge of the thermal management. |
181 | RW, Optional | 181 | RW, Optional |
182 | 182 | ||
183 | trip_point_[0-*]_temp | 183 | trip_point_[0-*]_temp |
@@ -256,7 +256,7 @@ method, the sys I/F structure will be built like this: | |||
256 | |thermal_zone1: | 256 | |thermal_zone1: |
257 | |---type: acpitz | 257 | |---type: acpitz |
258 | |---temp: 37000 | 258 | |---temp: 37000 |
259 | |---mode: kernel | 259 | |---mode: enabled |
260 | |---trip_point_0_temp: 100000 | 260 | |---trip_point_0_temp: 100000 |
261 | |---trip_point_0_type: critical | 261 | |---trip_point_0_type: critical |
262 | |---trip_point_1_temp: 80000 | 262 | |---trip_point_1_temp: 80000 |
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 2107d1bb84af..8275e7b06962 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -550,8 +550,6 @@ static int thermal_get_temp(struct thermal_zone_device *thermal, | |||
550 | return 0; | 550 | return 0; |
551 | } | 551 | } |
552 | 552 | ||
553 | static const char enabled[] = "kernel"; | ||
554 | static const char disabled[] = "user"; | ||
555 | static int thermal_get_mode(struct thermal_zone_device *thermal, | 553 | static int thermal_get_mode(struct thermal_zone_device *thermal, |
556 | enum thermal_device_mode *mode) | 554 | enum thermal_device_mode *mode) |
557 | { | 555 | { |
@@ -588,8 +586,8 @@ static int thermal_set_mode(struct thermal_zone_device *thermal, | |||
588 | if (enable != tz->tz_enabled) { | 586 | if (enable != tz->tz_enabled) { |
589 | tz->tz_enabled = enable; | 587 | tz->tz_enabled = enable; |
590 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 588 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
591 | "%s ACPI thermal control\n", | 589 | "%s kernel ACPI thermal control\n", |
592 | tz->tz_enabled ? enabled : disabled)); | 590 | tz->tz_enabled ? "Enable" : "Disable")); |
593 | acpi_thermal_check(tz); | 591 | acpi_thermal_check(tz); |
594 | } | 592 | } |
595 | return 0; | 593 | return 0; |