diff options
author | Joachim Deguara <joachim.deguara@amd.com> | 2007-01-30 18:53:54 +0300 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-02-04 01:25:19 +0300 |
commit | 58389a86df48ff927846df9537ea34d9961b5c44 (patch) | |
tree | 1cdf535d0ec444e63f687011b789a20ba0534e9b /arch | |
parent | 14796722839ee50ed2a2c7a6a135e7d0888aaada (diff) | |
download | linux-58389a86df48ff927846df9537ea34d9961b5c44.tar.xz |
[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 <joachim.deguara@amd.com>
Acked-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | 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 2d6491672559..fe3b67005ebb 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); |