Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32250
b: refs/heads/master
c: bed936f
h: refs/heads/master
v: v3
  • Loading branch information
Konstantin Karasyov authored and Linus Torvalds committed Jul 10, 2006
1 parent 1406664 commit e8e509d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 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: 868e81b8ada8fa05bdc08b5e6fa73307caaeab6d
refs/heads/master: bed936f7eab946c60170bc92a1aea597da158e02
17 changes: 16 additions & 1 deletion trunk/drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1359,13 +1359,28 @@ static int acpi_thermal_remove(struct acpi_device *device, int type)
static int acpi_thermal_resume(struct acpi_device *device, int state)
{
struct acpi_thermal *tz = NULL;
int i;

if (!device || !acpi_driver_data(device))
return -EINVAL;

tz = (struct acpi_thermal *)acpi_driver_data(device);

acpi_thermal_check(tz);
acpi_thermal_get_temperature(tz);

for (i = 0; i < ACPI_THERMAL_MAX_ACTIVE; i++) {
if (tz->trips.active[i].flags.valid) {
tz->temperature = tz->trips.active[i].temperature;
tz->trips.active[i].flags.enabled = 0;

acpi_thermal_active(tz);

tz->state.active |= tz->trips.active[i].flags.enabled;
tz->state.active_index = i;
}
}

acpi_thermal_check(tz);

return AE_OK;
}
Expand Down

0 comments on commit e8e509d

Please sign in to comment.