diff options
author | Zhang Rui <rui.zhang@intel.com> | 2007-06-13 21:24:02 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-06-13 21:24:02 -0400 |
commit | 3cdf552be228e1ca55f9c53a78f39e8b77d6159c (patch) | |
tree | 0e47a90f1f1b658dae11e6c7359dfa31cdd59f14 /arch/i386/kernel | |
parent | eedab661a51966c454e38c17266a531aa58b4a98 (diff) |
ACPI: Discard invalid elements in _PSS package
Make sure that the _PSS list is sorted in
descending order by typical power dissipation.
http://bugzilla.kernel.org/show_bug.cgi?id=7880
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c index 10baa3501ed3..9ba2b69fc64a 100644 --- a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | |||
@@ -668,8 +668,8 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
668 | data->max_freq = perf->states[0].core_frequency * 1000; | 668 | data->max_freq = perf->states[0].core_frequency * 1000; |
669 | /* table init */ | 669 | /* table init */ |
670 | for (i=0; i<perf->state_count; i++) { | 670 | for (i=0; i<perf->state_count; i++) { |
671 | if (i>0 && perf->states[i].core_frequency == | 671 | if (i>0 && perf->states[i].core_frequency >= |
672 | perf->states[i-1].core_frequency) | 672 | data->freq_table[valid_states-1].frequency / 1000) |
673 | continue; | 673 | continue; |
674 | 674 | ||
675 | data->freq_table[valid_states].index = i; | 675 | data->freq_table[valid_states].index = i; |