diff options
author | Mark Langsdorf <mark.langsdorf@amd.com> | 2010-03-31 15:56:45 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-04-09 17:07:47 -0400 |
commit | 679370641e3675633cad222449262abbe93a4a2a (patch) | |
tree | e7c6051476724b9bd0aba8869e39272200f32869 /arch/x86/kernel/cpu | |
parent | a2fed573f065e526bfd5cbf26e5491973d9e9aaa (diff) |
powernow-k8: Fix frequency reporting
With F10, model 10, all valid frequencies are in the ACPI _PST table.
Cc: <stable@kernel.org> # 33.x 32.x
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
LKML-Reference: <1270065406-1814-6-git-send-email-bp@amd64.org>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Reviewed-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/powernow-k8.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c index 52fce638f444..6f3dc8fbbfdc 100644 --- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c | |||
@@ -935,7 +935,8 @@ static int fill_powernow_table_pstate(struct powernow_k8_data *data, | |||
935 | powernow_table[i].index = index; | 935 | powernow_table[i].index = index; |
936 | 936 | ||
937 | /* Frequency may be rounded for these */ | 937 | /* Frequency may be rounded for these */ |
938 | if (boot_cpu_data.x86 == 0x10 || boot_cpu_data.x86 == 0x11) { | 938 | if ((boot_cpu_data.x86 == 0x10 && boot_cpu_data.x86_model < 10) |
939 | || boot_cpu_data.x86 == 0x11) { | ||
939 | powernow_table[i].frequency = | 940 | powernow_table[i].frequency = |
940 | freq_from_fid_did(lo & 0x3f, (lo >> 6) & 7); | 941 | freq_from_fid_did(lo & 0x3f, (lo >> 6) & 7); |
941 | } else | 942 | } else |