Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70947
b: refs/heads/master
c: 58d5fa7
h: refs/heads/master
i:
  70945: 5f3e2be
  70943: dda4f1c
v: v3
  • Loading branch information
Siddha, Suresh B authored and Thomas Gleixner committed Oct 17, 2007
1 parent d1c8c2f commit 1104b3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 801916c1b369b637ce799e6c71a94963ff63df79
refs/heads/master: 58d5fa7a6a6fc4754d295d0999b284edd67c8620
8 changes: 7 additions & 1 deletion trunk/include/asm-x86/mach-default/mach_apicdef.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#ifndef __ASM_MACH_APICDEF_H
#define __ASM_MACH_APICDEF_H

#include <asm/apic.h>

#define APIC_ID_MASK (0xF<<24)

static inline unsigned get_apic_id(unsigned long x)
{
return (((x)>>24)&0xF);
unsigned int ver = GET_APIC_VERSION(apic_read(APIC_LVR));
if (APIC_XAPIC(ver))
return (((x)>>24)&0xFF);
else
return (((x)>>24)&0xF);
}

#define GET_APIC_ID(x) get_apic_id(x)
Expand Down

0 comments on commit 1104b3a

Please sign in to comment.