Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a6f6e6e6ab464c9d1dff66570b78be2f66d8ba3d
Commit:     a6f6e6e6ab464c9d1dff66570b78be2f66d8ba3d
Parent:     7650b281b091f39f5e97f13b45ab3813b1526b65
Author:     Venkatesh Pallipadi <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 3 12:37:42 2006 -0700
Committer:  Dave Jones <[EMAIL PROTECTED]>
CommitDate: Sun Oct 15 19:57:11 2006 -0400

    [CPUFREQ][7/8] acpi-cpufreq: Fix get of current frequency breakage
    
    Recent speedstep-centrino unification onto acpi-cpufreq patchset broke
    cpuinfo_cur_freq interface in /sys/../cpuinfo/, when MSR was used for
    transitions. Attached patch fixes that breakage.
    
    Signed-off-by: Venkatesh Pallipadi <[EMAIL PROTECTED]>
    Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
---
 arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c 
b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
index e6513e9..8b0c7db 100644
--- a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -101,10 +101,13 @@ static unsigned extract_io(u32 value, struct 
acpi_cpufreq_data *data)
 static unsigned extract_msr(u32 msr, struct acpi_cpufreq_data *data)
 {
        int i;
+       struct acpi_processor_performance *perf;
 
        msr &= INTEL_MSR_RANGE;
+       perf = data->acpi_data;
+
        for (i = 0; data->freq_table[i].frequency != CPUFREQ_TABLE_END; i++) {
-               if (msr == data->freq_table[i].index)
+               if (msr == perf->states[data->freq_table[i].index].status)
                        return data->freq_table[i].frequency;
        }
        return data->freq_table[0].frequency;
-
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