Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221814
b: refs/heads/master
c: 0059b24
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Thomas Gleixner committed Nov 9, 2010
1 parent 2ecd6c0 commit db0e471
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf38d0ba7efdc476815768b2b999b27cfae69747
refs/heads/master: 0059b2436a86fedb2747f654f8e10a67e97d8614
10 changes: 5 additions & 5 deletions trunk/arch/x86/include/asm/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ static inline void native_apic_msr_write(u32 reg, u32 v)

static inline u32 native_apic_msr_read(u32 reg)
{
u32 low, high;
u64 msr;

if (reg == APIC_DFR)
return -1;

rdmsr(APIC_BASE_MSR + (reg >> 4), low, high);
return low;
rdmsrl(APIC_BASE_MSR + (reg >> 4), msr);
return (u32)msr;
}

static inline void native_x2apic_wait_icr_idle(void)
Expand Down Expand Up @@ -181,12 +181,12 @@ extern void enable_x2apic(void);
extern void x2apic_icr_write(u32 low, u32 id);
static inline int x2apic_enabled(void)
{
int msr, msr2;
u64 msr;

if (!cpu_has_x2apic)
return 0;

rdmsr(MSR_IA32_APICBASE, msr, msr2);
rdmsrl(MSR_IA32_APICBASE, msr);
if (msr & X2APIC_ENABLE)
return 1;
return 0;
Expand Down

0 comments on commit db0e471

Please sign in to comment.