aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 08:59:17 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:29 -0500
commit5b8127277bc4cdca78eda5ee900a314642822ace (patch)
tree07559a79f03be24bd5cc1df238233b2d63550c94 /arch/x86/include
parentca6c8ed4646f8ccaa4f7db618bf69b8b8fb49767 (diff)
x86, apic: refactor ->apic_id_mask & APIC_ID_MASK
- spread out the namespace on a per driver basis - get rid of wrapper macros Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/bigsmp/apicdef.h2
-rw-r--r--arch/x86/include/asm/es7000/apicdef.h2
-rw-r--r--arch/x86/include/asm/mach-default/mach_apicdef.h3
-rw-r--r--arch/x86/include/asm/mach-generic/mach_apicdef.h2
-rw-r--r--arch/x86/include/asm/numaq/apicdef.h2
-rw-r--r--arch/x86/include/asm/summit/apicdef.h2
6 files changed, 5 insertions, 8 deletions
diff --git a/arch/x86/include/asm/bigsmp/apicdef.h b/arch/x86/include/asm/bigsmp/apicdef.h
index ed25dd6503b2..6e587818c7ed 100644
--- a/arch/x86/include/asm/bigsmp/apicdef.h
+++ b/arch/x86/include/asm/bigsmp/apicdef.h
@@ -1,7 +1,7 @@
1#ifndef __ASM_MACH_APICDEF_H 1#ifndef __ASM_MACH_APICDEF_H
2#define __ASM_MACH_APICDEF_H 2#define __ASM_MACH_APICDEF_H
3 3
4#define APIC_ID_MASK (0xFF<<24) 4#define BIGSMP_APIC_ID_MASK (0xFF<<24)
5 5
6static inline unsigned bigsmp_get_apic_id(unsigned long x) 6static inline unsigned bigsmp_get_apic_id(unsigned long x)
7{ 7{
diff --git a/arch/x86/include/asm/es7000/apicdef.h b/arch/x86/include/asm/es7000/apicdef.h
index e23791762a19..476da0c7f5cc 100644
--- a/arch/x86/include/asm/es7000/apicdef.h
+++ b/arch/x86/include/asm/es7000/apicdef.h
@@ -1,7 +1,7 @@
1#ifndef __ASM_ES7000_APICDEF_H 1#ifndef __ASM_ES7000_APICDEF_H
2#define __ASM_ES7000_APICDEF_H 2#define __ASM_ES7000_APICDEF_H
3 3
4#define APIC_ID_MASK (0xFF<<24) 4#define ES7000_APIC_ID_MASK (0xFF<<24)
5 5
6static inline unsigned int es7000_get_apic_id(unsigned long x) 6static inline unsigned int es7000_get_apic_id(unsigned long x)
7{ 7{
diff --git a/arch/x86/include/asm/mach-default/mach_apicdef.h b/arch/x86/include/asm/mach-default/mach_apicdef.h
index e84d437ba2b2..8318d121ea66 100644
--- a/arch/x86/include/asm/mach-default/mach_apicdef.h
+++ b/arch/x86/include/asm/mach-default/mach_apicdef.h
@@ -4,10 +4,9 @@
4#include <asm/apic.h> 4#include <asm/apic.h>
5 5
6#ifdef CONFIG_X86_64 6#ifdef CONFIG_X86_64
7#define APIC_ID_MASK (apic->apic_id_mask)
8#define SET_APIC_ID(x) (apic->set_apic_id(x)) 7#define SET_APIC_ID(x) (apic->set_apic_id(x))
9#else 8#else
10#define APIC_ID_MASK (0xF<<24) 9#define DEFAULT_APIC_ID_MASK (0x0F<<24)
11 10
12static inline unsigned default_get_apic_id(unsigned long x) 11static inline unsigned default_get_apic_id(unsigned long x)
13{ 12{
diff --git a/arch/x86/include/asm/mach-generic/mach_apicdef.h b/arch/x86/include/asm/mach-generic/mach_apicdef.h
index 645520bcd2c2..61caa65b13fb 100644
--- a/arch/x86/include/asm/mach-generic/mach_apicdef.h
+++ b/arch/x86/include/asm/mach-generic/mach_apicdef.h
@@ -3,8 +3,6 @@
3 3
4#ifndef APIC_DEFINITION 4#ifndef APIC_DEFINITION
5#include <asm/genapic.h> 5#include <asm/genapic.h>
6
7#define APIC_ID_MASK (apic->apic_id_mask)
8#endif 6#endif
9 7
10#endif /* _ASM_X86_MACH_GENERIC_MACH_APICDEF_H */ 8#endif /* _ASM_X86_MACH_GENERIC_MACH_APICDEF_H */
diff --git a/arch/x86/include/asm/numaq/apicdef.h b/arch/x86/include/asm/numaq/apicdef.h
index 29f5e3d34e5b..6f2cc5df0b15 100644
--- a/arch/x86/include/asm/numaq/apicdef.h
+++ b/arch/x86/include/asm/numaq/apicdef.h
@@ -1,7 +1,7 @@
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#define APIC_ID_MASK (0xF<<24) 4#define NUMAQ_APIC_ID_MASK (0xF<<24)
5 5
6static inline unsigned int numaq_get_apic_id(unsigned long x) 6static inline unsigned int numaq_get_apic_id(unsigned long x)
7{ 7{
diff --git a/arch/x86/include/asm/summit/apicdef.h b/arch/x86/include/asm/summit/apicdef.h
index 4286528af7c6..0373f0c7b5db 100644
--- a/arch/x86/include/asm/summit/apicdef.h
+++ b/arch/x86/include/asm/summit/apicdef.h
@@ -1,7 +1,7 @@
1#ifndef __ASM_SUMMIT_APICDEF_H 1#ifndef __ASM_SUMMIT_APICDEF_H
2#define __ASM_SUMMIT_APICDEF_H 2#define __ASM_SUMMIT_APICDEF_H
3 3
4#define APIC_ID_MASK (0xFF<<24) 4#define SUMMIT_APIC_ID_MASK (0xFF<<24)
5 5
6static inline unsigned summit_get_apic_id(unsigned long x) 6static inline unsigned summit_get_apic_id(unsigned long x)
7{ 7{