Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117375
b: refs/heads/master
c: 22a94d7
h: refs/heads/master
i:
  117373: ce6f8dc
  117371: c96b94c
  117367: f9ad7fd
  117359: 9d6bd1b
  117343: 43243c5
  117311: 8404386
  117247: 296cd3e
v: v3
  • Loading branch information
Zhang Rui authored and Len Brown committed Oct 17, 2008
1 parent e52d97f commit 304e242
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7745384080ef70f7710530afa3e45477b126e056
refs/heads/master: 22a94d79a34bf010d11996d30eed8ee3fc1a4fbf
2 changes: 1 addition & 1 deletion trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,7 @@ and is between 256 and 4096 characters. It is defined in the file

thermal.crt= [HW,ACPI]
-1: disable all critical trip points in all thermal zones
<degrees C>: lower all critical trip points
<degrees C>: override all critical trip points

thermal.nocrt= [HW,ACPI]
Set to disable actions on ACPI thermal zone
Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,12 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
} else if (crt > 0) {
unsigned long crt_k = CELSIUS_TO_KELVIN(crt);
/*
* Allow override to lower critical threshold
* Allow override critical threshold
*/
if (crt_k < tz->trips.critical.temperature)
tz->trips.critical.temperature = crt_k;
if (crt_k > tz->trips.critical.temperature)
printk(KERN_WARNING PREFIX
"Critical threshold %d C\n", crt);
tz->trips.critical.temperature = crt_k;
}
}
}
Expand Down

0 comments on commit 304e242

Please sign in to comment.