aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/numaq/apicdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/numaq/apicdef.h')
-rw-r--r--arch/x86/include/asm/numaq/apicdef.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/include/asm/numaq/apicdef.h b/arch/x86/include/asm/numaq/apicdef.h
index e012a46cc22a..29f5e3d34e5b 100644
--- a/arch/x86/include/asm/numaq/apicdef.h
+++ b/arch/x86/include/asm/numaq/apicdef.h
@@ -1,14 +1,11 @@
1#ifndef __ASM_NUMAQ_APICDEF_H 1#ifndef __ASM_NUMAQ_APICDEF_H
2#define __ASM_NUMAQ_APICDEF_H 2#define __ASM_NUMAQ_APICDEF_H
3 3
4
5#define APIC_ID_MASK (0xF<<24) 4#define APIC_ID_MASK (0xF<<24)
6 5
7static inline unsigned get_apic_id(unsigned long x) 6static inline unsigned int numaq_get_apic_id(unsigned long x)
8{ 7{
9 return (((x)>>24)&0x0F); 8 return (x >> 24) & 0x0F;
10} 9}
11 10
12#define GET_APIC_ID(x) get_apic_id(x)
13
14#endif 11#endif