summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2004-04-08 18:57:41 +0100
committerDave Jones <davej@delerium.codemonkey.org.uk>2004-04-08 18:57:41 +0100
commit2aebc5b195bc00aa5e09c10dec3a4a5fdb9ba21b (patch)
tree72b33d9eaba438925f54de80e20539cac18876c4
parentc2076f465bb8bc3d1d6d4f56a569e24523090216 (diff)
[CPUFREQ] Don't bother checking if we need workarounds if we don't support powernow.
-rw-r--r--arch/i386/kernel/cpu/cpufreq/powernow-k7.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k7.c b/arch/i386/kernel/cpu/cpufreq/powernow-k7.c
index 9158b1040630..8b95e88c95d3 100644
--- a/arch/i386/kernel/cpu/cpufreq/powernow-k7.c
+++ b/arch/i386/kernel/cpu/cpufreq/powernow-k7.c
@@ -98,11 +98,6 @@ static int check_powernow(void)
return 0;
}
- if ((c->x86_model == 6) && (c->x86_mask == 0)) {
- printk (KERN_INFO PFX "K7 660[A0] core detected, enabling errata workarounds\n");
- have_a0 = 1;
- }
-
/* Get maximum capabilities */
maxei = cpuid_eax (0x80000000);
if (maxei < 0x80000007) { /* Any powernow info ? */
@@ -112,6 +107,11 @@ static int check_powernow(void)
return 0;
}
+ if ((c->x86_model == 6) && (c->x86_mask == 0)) {
+ printk (KERN_INFO PFX "K7 660[A0] core detected, enabling errata workarounds\n");
+ have_a0 = 1;
+ }
+
cpuid(0x80000007, &eax, &ebx, &ecx, &edx);
printk (KERN_INFO PFX "PowerNOW! Technology present. Can scale: ");