Lines 459-466
Link Here
|
459 |
* Track the number of longs (time asleep is greater than threshold) |
459 |
* Track the number of longs (time asleep is greater than threshold) |
460 |
* and promote when the count threshold is reached. Note that bus |
460 |
* and promote when the count threshold is reached. Note that bus |
461 |
* mastering activity may prevent promotions. |
461 |
* mastering activity may prevent promotions. |
|
|
462 |
* Do not promote above acpi_cstate_limit. |
462 |
*/ |
463 |
*/ |
463 |
if (cx->promotion.state) { |
464 |
if (cx->promotion.state && (cx->promotion.state <= acpi_cstate_limit)) { |
464 |
if (sleep_ticks > cx->promotion.threshold.ticks) { |
465 |
if (sleep_ticks > cx->promotion.threshold.ticks) { |
465 |
cx->promotion.count++; |
466 |
cx->promotion.count++; |
466 |
cx->demotion.count = 0; |
467 |
cx->demotion.count = 0; |
Lines 498-503
Link Here
|
498 |
|
499 |
|
499 |
end: |
500 |
end: |
500 |
/* |
501 |
/* |
|
|
502 |
* Demote if current state exceeds acpi_cstate_limit |
503 |
*/ |
504 |
if (pr->power.state > acpi_cstate_limit) { |
505 |
next_state = acpi_cstate_limit; |
506 |
} |
507 |
|
508 |
/* |
501 |
* New Cx State? |
509 |
* New Cx State? |
502 |
* ------------- |
510 |
* ------------- |
503 |
* If we're going to start using a new Cx state we must clean up |
511 |
* If we're going to start using a new Cx state we must clean up |
Lines 2441-2445
Link Here
|
2441 |
|
2449 |
|
2442 |
module_init(acpi_processor_init); |
2450 |
module_init(acpi_processor_init); |
2443 |
module_exit(acpi_processor_exit); |
2451 |
module_exit(acpi_processor_exit); |
|
|
2452 |
module_param_named(acpi_cstate_limit, acpi_cstate_limit, uint, 0); |
2444 |
|
2453 |
|
2445 |
EXPORT_SYMBOL(acpi_processor_set_thermal_limit); |
2454 |
EXPORT_SYMBOL(acpi_processor_set_thermal_limit); |