Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 600 → Rev 769

/shark/trunk/drivers/cpu/cpufreq/powernow-k8.c
31,6 → 31,14
#include <asm/io.h>
#include <asm/delay.h>
 
#define DEBUG
 
#ifdef DEBUG
#define dprintk(msg...) printk(msg)
#else
#define dprintk(msg...) do { } while(0)
#endif
 
#define PFX "powernow-k8: "
#define BFX PFX "BIOS error: "
#define VERSION "version 1.00.08 - September 26, 2003"
493,19 → 501,13
}
 
eax = cpuid_eax(CPUID_PROCESSOR_SIGNATURE);
if ((eax & CPUID_XFAM_MOD) == ATHLON64_XFAM_MOD) {
dprintk(KERN_DEBUG PFX "AMD Althon 64 Processor found\n");
if ((eax & CPUID_F1_STEP) < ATHLON64_REV_C0) {
dprintk(KERN_INFO PFX "Revision C0 or better "
"AMD Athlon 64 processor required\n");
return 0;
}
} else if ((eax & CPUID_XFAM_MOD) == OPTERON_XFAM_MOD) {
dprintk(KERN_DEBUG PFX "AMD Opteron Processor found\n");
if (((eax & CPUID_USE_XFAM_XMOD) != CPUID_USE_XFAM_XMOD) ||
((eax & CPUID_XFAM) != CPUID_XFAM_K8) ||
((eax & CPUID_XMOD) > CPUID_XMOD_REV_E)) {
printk(KERN_INFO PFX "Processor cpuid %x not supported\n", eax);
return 0;
} else {
dprintk(KERN_INFO PFX
"AMD Athlon 64 or AMD Opteron processor required\n");
return 0;
dprintk(KERN_INFO PFX "AMD Athlon 64 or AMD Opteron processor found\n");
}
 
eax = cpuid_eax(CPUID_GET_MAX_CAPABILITIES);