Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3cdf552be228e1ca55f9c53a78f39e8b77d6159c
Commit:     3cdf552be228e1ca55f9c53a78f39e8b77d6159c
Parent:     eedab661a51966c454e38c17266a531aa58b4a98
Author:     Zhang Rui <[EMAIL PROTECTED]>
AuthorDate: Wed Jun 13 21:24:02 2007 -0400
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Wed Jun 13 21:24:02 2007 -0400

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 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 10baa35..9ba2b69 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)
        data->max_freq = perf->states[0].core_frequency * 1000;
        /* table init */
        for (i=0; i<perf->state_count; i++) {
-               if (i>0 && perf->states[i].core_frequency ==
-                   perf->states[i-1].core_frequency)
+               if (i>0 && perf->states[i].core_frequency >=
+                   data->freq_table[valid_states-1].frequency / 1000)
                        continue;
 
                data->freq_table[valid_states].index = i;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to