diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-07-08 17:55:30 +0200 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2010-08-03 13:47:03 -0400 |
commit | c2f4a2c6e08c7635316dfd25ef706e9104384c56 (patch) | |
tree | 5898daaec6234995e176378dcf8791b082814e41 /arch | |
parent | 6ebdf777ba034d2b54c99f28a4b18dabf286d8e5 (diff) | |
download | linux-3.10-c2f4a2c6e08c7635316dfd25ef706e9104384c56.tar.gz linux-3.10-c2f4a2c6e08c7635316dfd25ef706e9104384c56.tar.bz2 linux-3.10-c2f4a2c6e08c7635316dfd25ef706e9104384c56.zip |
[CPUFREQ] powernow-k8: Limit Pstate transition latency check
The Pstate transition latency check was added for broken F10h BIOSen
which wrongly contain a value of 0 for transition and bus master
latency. Fam11h and later, however, (will) have similar transition
latency so extend that behavior for them too.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/powernow-k8.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c index 7ec2123838e..3e90cce3dc8 100644 --- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c @@ -1023,13 +1023,12 @@ static int get_transition_latency(struct powernow_k8_data *data) } if (max_latency == 0) { /* - * Fam 11h always returns 0 as transition latency. - * This is intended and means "very fast". While cpufreq core - * and governors currently can handle that gracefully, better - * set it to 1 to avoid problems in the future. - * For all others it's a BIOS bug. + * Fam 11h and later may return 0 as transition latency. This + * is intended and means "very fast". While cpufreq core and + * governors currently can handle that gracefully, better set it + * to 1 to avoid problems in the future. */ - if (boot_cpu_data.x86 != 0x11) + if (boot_cpu_data.x86 < 0x11) printk(KERN_ERR FW_WARN PFX "Invalid zero transition " "latency\n"); max_latency = 1; |