Lines 562-569
acpi_thermal_passive (
Link Here
|
562 |
* assume symmetry. |
562 |
* assume symmetry. |
563 |
*/ |
563 |
*/ |
564 |
else if (tz->trips.passive.flags.enabled) { |
564 |
else if (tz->trips.passive.flags.enabled) { |
|
|
565 |
result = 1; |
565 |
for (i=0; i<passive->devices.count; i++) |
566 |
for (i=0; i<passive->devices.count; i++) |
566 |
result = acpi_processor_set_thermal_limit( |
567 |
result &= acpi_processor_set_thermal_limit( |
567 |
passive->devices.handles[i], |
568 |
passive->devices.handles[i], |
568 |
ACPI_PROCESSOR_LIMIT_DECREMENT); |
569 |
ACPI_PROCESSOR_LIMIT_DECREMENT); |
569 |
if (result == 1) { |
570 |
if (result == 1) { |
Lines 721-733
acpi_thermal_check (
Link Here
|
721 |
*/ |
722 |
*/ |
722 |
if (tz->trips.critical.flags.enabled) |
723 |
if (tz->trips.critical.flags.enabled) |
723 |
tz->state.critical = 1; |
724 |
tz->state.critical = 1; |
|
|
725 |
else |
726 |
tz->state.critical = 0; |
724 |
if (tz->trips.hot.flags.enabled) |
727 |
if (tz->trips.hot.flags.enabled) |
725 |
tz->state.hot = 1; |
728 |
tz->state.hot = 1; |
|
|
729 |
else |
730 |
tz->state.hot = 0; |
726 |
if (tz->trips.passive.flags.enabled) |
731 |
if (tz->trips.passive.flags.enabled) |
727 |
tz->state.passive = 1; |
732 |
tz->state.passive = 1; |
|
|
733 |
else |
734 |
tz->state.passive = 0; |
735 |
result = 0; |
728 |
for (i=0; i<ACPI_THERMAL_MAX_ACTIVE; i++) |
736 |
for (i=0; i<ACPI_THERMAL_MAX_ACTIVE; i++) |
729 |
if (tz->trips.active[i].flags.enabled) |
737 |
if (tz->trips.active[i].flags.enabled) |
730 |
tz->state.active = 1; |
738 |
tz->state.active = 1, result = 1; |
|
|
739 |
if (!result) |
740 |
tz->state.active = 0; |
731 |
|
741 |
|
732 |
/* |
742 |
/* |
733 |
* Calculate Sleep Time |
743 |
* Calculate Sleep Time |