Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145059
b: refs/heads/master
c: 2932135
h: refs/heads/master
i:
  145057: f8620c6
  145055: 53cbba8
v: v3
  • Loading branch information
Vladimir Zajac authored and Len Brown committed May 14, 2009
1 parent 7f2bd3e commit e08a24f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 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: 975b3c474c13d29337eaf7da8f5f5c0299e4943f
refs/heads/master: 29321357ac6db54eeb8574da1f6c3e0ce8cfbb60
7 changes: 1 addition & 6 deletions trunk/drivers/acpi/acpica/aclocal.h
Original file line number Diff line number Diff line change
Expand Up @@ -787,12 +787,7 @@ struct acpi_bit_register_info {

/* For control registers, both ignored and reserved bits must be preserved */

/*
* The ACPI spec says to ignore PM1_CTL.SCI_EN (bit 0)
* but we need to be able to write ACPI_BITREG_SCI_ENABLE directly
* as a BIOS workaround on some machines.
*/
#define ACPI_PM1_CONTROL_IGNORED_BITS 0x0200 /* Bits 9 */
#define ACPI_PM1_CONTROL_IGNORED_BITS 0x0201 /* Bits 9, 0(SCI_EN) */
#define ACPI_PM1_CONTROL_RESERVED_BITS 0xC1F8 /* Bits 14-15, 3-8 */
#define ACPI_PM1_CONTROL_PRESERVED_BITS \
(ACPI_PM1_CONTROL_IGNORED_BITS | ACPI_PM1_CONTROL_RESERVED_BITS)
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/thermal/thermal_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)

switch (trip_type) {
case THERMAL_TRIP_CRITICAL:
if (temp > trip_temp) {
if (temp >= trip_temp) {
if (tz->ops->notify)
ret = tz->ops->notify(tz, count,
trip_type);
Expand All @@ -974,7 +974,7 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)
}
break;
case THERMAL_TRIP_HOT:
if (temp > trip_temp)
if (temp >= trip_temp)
if (tz->ops->notify)
tz->ops->notify(tz, count, trip_type);
break;
Expand All @@ -986,14 +986,14 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)

cdev = instance->cdev;

if (temp > trip_temp)
if (temp >= trip_temp)
cdev->ops->set_cur_state(cdev, 1);
else
cdev->ops->set_cur_state(cdev, 0);
}
break;
case THERMAL_TRIP_PASSIVE:
if (temp > trip_temp || tz->passive)
if (temp >= trip_temp || tz->passive)
thermal_zone_device_passive(tz, temp,
trip_temp, count);
break;
Expand Down

0 comments on commit e08a24f

Please sign in to comment.