aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/amd.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-06-09 11:11:13 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-10 09:52:07 -0400
commitaa83f3f2cfc74d66d01b1d2eb1485ea1103a0f4e (patch)
tree19887cba6f901b8e3a5d20080c5e74ef671fba4c /arch/x86/kernel/cpu/amd.c
parent6ddd2a27948f0bd02a2ad001e8a6816898eba0dc (diff)
x86: cleanup C1E enabled detection
Rename the "MSR_K8_ENABLE_C1E" MSR to INT_PENDING_MSG, which is the name in the data sheet as well. Move the C1E mask to the header file. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r--arch/x86/kernel/cpu/amd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index a38d54f4ff25..30b5055be355 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -25,7 +25,6 @@ extern void vide(void);
25__asm__(".align 4\nvide: ret"); 25__asm__(".align 4\nvide: ret");
26 26
27#ifdef CONFIG_X86_LOCAL_APIC 27#ifdef CONFIG_X86_LOCAL_APIC
28#define ENABLE_C1E_MASK 0x18000000
29#define CPUID_PROCESSOR_SIGNATURE 1 28#define CPUID_PROCESSOR_SIGNATURE 1
30#define CPUID_XFAM 0x0ff00000 29#define CPUID_XFAM 0x0ff00000
31#define CPUID_XFAM_K8 0x00000000 30#define CPUID_XFAM_K8 0x00000000
@@ -45,8 +44,8 @@ static __cpuinit int amd_apic_timer_broken(void)
45 break; 44 break;
46 case CPUID_XFAM_10H: 45 case CPUID_XFAM_10H:
47 case CPUID_XFAM_11H: 46 case CPUID_XFAM_11H:
48 rdmsr(MSR_K8_ENABLE_C1E, lo, hi); 47 rdmsr(MSR_K8_INT_PENDING_MSG, lo, hi);
49 if (lo & ENABLE_C1E_MASK) { 48 if (lo & K8_INTP_C1E_ACTIVE_MASK) {
50 if (smp_processor_id() != boot_cpu_physical_apicid) 49 if (smp_processor_id() != boot_cpu_physical_apicid)
51 printk(KERN_INFO "AMD C1E detected late. " 50 printk(KERN_INFO "AMD C1E detected late. "
52 " Force timer broadcast.\n"); 51 " Force timer broadcast.\n");