[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-679370641e3675633cad222449262abbe93a4a2a@git.kernel.org>
Date: Fri, 9 Apr 2010 22:19:59 GMT
From: tip-bot for Mark Langsdorf <mark.langsdorf@....com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
mark.langsdorf@....com, trenn@...e.de, tglx@...utronix.de,
borislav.petkov@....com
Subject: [tip:x86/cpu] powernow-k8: Fix frequency reporting
Commit-ID: 679370641e3675633cad222449262abbe93a4a2a
Gitweb: http://git.kernel.org/tip/679370641e3675633cad222449262abbe93a4a2a
Author: Mark Langsdorf <mark.langsdorf@....com>
AuthorDate: Wed, 31 Mar 2010 21:56:45 +0200
Committer: H. Peter Anvin <hpa@...or.com>
CommitDate: Fri, 9 Apr 2010 14:07:47 -0700
powernow-k8: Fix frequency reporting
With F10, model 10, all valid frequencies are in the ACPI _PST table.
Cc: <stable@...nel.org> # 33.x 32.x
Signed-off-by: Mark Langsdorf <mark.langsdorf@....com>
LKML-Reference: <1270065406-1814-6-git-send-email-bp@...64.org>
Signed-off-by: Borislav Petkov <borislav.petkov@....com>
Reviewed-by: Thomas Renninger <trenn@...e.de>
Signed-off-by: H. Peter Anvin <hpa@...or.com>
---
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 52fce63..6f3dc8f 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,
powernow_table[i].index = index;
/* Frequency may be rounded for these */
- if (boot_cpu_data.x86 == 0x10 || boot_cpu_data.x86 == 0x11) {
+ if ((boot_cpu_data.x86 == 0x10 && boot_cpu_data.x86_model < 10)
+ || boot_cpu_data.x86 == 0x11) {
powernow_table[i].frequency =
freq_from_fid_did(lo & 0x3f, (lo >> 6) & 7);
} else
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists