Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=58389a86df48ff927846df9537ea34d9961b5c44
Commit:     58389a86df48ff927846df9537ea34d9961b5c44
Parent:     14796722839ee50ed2a2c7a6a135e7d0888aaada
Author:     Joachim Deguara <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 30 16:53:54 2007 +0100
Committer:  Dave Jones <[EMAIL PROTECTED]>
CommitDate: Sat Feb 3 17:25:19 2007 -0500

    [CPUFREQ] fix cpuinfo_cur_freq for CPU_HW_PSTATE
    
    This fixes the cpuinfo_cur_freq value by using the correct
    find_khz_freq_from_fiddid() when the CPU uses hardware p-states.
    
    Signed-off-by: Joachim Deguara <[EMAIL PROTECTED]>
    Acked-by: Mark Langsdorf <[EMAIL PROTECTED]>
    Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
---
 arch/i386/kernel/cpu/cpufreq/powernow-k8.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c 
b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
index 2d64916..fe3b670 100644
--- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
@@ -1289,7 +1289,11 @@ static unsigned int powernowk8_get (unsigned int cpu)
        if (query_current_values_with_pending_wait(data))
                goto out;
 
-       khz = find_khz_freq_from_fid(data->currfid);
+       if (cpu_family == CPU_HW_PSTATE)
+               khz = find_khz_freq_from_fiddid(data->currfid, data->currdid);
+       else
+               khz = find_khz_freq_from_fid(data->currfid);
+
 
 out:
        set_cpus_allowed(current, oldmask);
-
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