Skip to content

Commit 4b31e77

Browse files
Dominik Brodowskilenb
Dominik Brodowski
authored andcommitted
[ACPI] Always set P-state on initialization
Otherwise a platform that supports ACPI based cpufreq and boots up at lowest possible speed could stay there forever. This because the governor may request max speed, but the code doesn't update if there is no change in speed, and it assumed the initial state of max speed. http://bugzilla.kernel.org/show_bug.cgi?id=4634 Signed-off-by: Dominik Brodowski <[email protected]> Signed-off-by: Venkatesh Pallipadi <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent 45bea15 commit 4b31e77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,13 @@ acpi_cpufreq_cpu_init (
442442
(u32) data->acpi_data.states[i].transition_latency);
443443

444444
cpufreq_frequency_table_get_attr(data->freq_table, policy->cpu);
445+
446+
/*
447+
* the first call to ->target() should result in us actually
448+
* writing something to the appropriate registers.
449+
*/
450+
data->resume = 1;
451+
445452
return (result);
446453

447454
err_freqfree:

0 commit comments

Comments
 (0)