diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 09:08:53 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:30 -0500 |
commit | 94af18755266edf46803564414d74f9621aaded8 (patch) | |
tree | 4b8677f78d7a30271a11e31587540b1e6c073038 /arch/x86 | |
parent | 5b8127277bc4cdca78eda5ee900a314642822ace (diff) |
x86, apic: get rid of *_APIC_ID_MASK definitions
Impact: cleanup
Remove the *_APIC_ID_MASK subarch definitions and move them straight
to the genapic driver initialization code.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/bigsmp/apicdef.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/es7000/apicdef.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apicdef.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/numaq/apicdef.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/summit/apicdef.h | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/bigsmp.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/default.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/es7000.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/numaq.c | 2 | ||||
-rw-r--r-- | arch/x86/mach-generic/summit.c | 2 |
10 files changed, 5 insertions, 14 deletions
diff --git a/arch/x86/include/asm/bigsmp/apicdef.h b/arch/x86/include/asm/bigsmp/apicdef.h index 6e587818c7ed..e58dee847573 100644 --- a/arch/x86/include/asm/bigsmp/apicdef.h +++ b/arch/x86/include/asm/bigsmp/apicdef.h | |||
@@ -1,8 +1,6 @@ | |||
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 BIGSMP_APIC_ID_MASK (0xFF<<24) | ||
5 | |||
6 | static inline unsigned bigsmp_get_apic_id(unsigned long x) | 4 | static inline unsigned bigsmp_get_apic_id(unsigned long x) |
7 | { | 5 | { |
8 | return (x >> 24) & 0xFF; | 6 | return (x >> 24) & 0xFF; |
diff --git a/arch/x86/include/asm/es7000/apicdef.h b/arch/x86/include/asm/es7000/apicdef.h index 476da0c7f5cc..c74881a7b3d8 100644 --- a/arch/x86/include/asm/es7000/apicdef.h +++ b/arch/x86/include/asm/es7000/apicdef.h | |||
@@ -1,8 +1,6 @@ | |||
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 ES7000_APIC_ID_MASK (0xFF<<24) | ||
5 | |||
6 | static inline unsigned int es7000_get_apic_id(unsigned long x) | 4 | static inline unsigned int es7000_get_apic_id(unsigned long x) |
7 | { | 5 | { |
8 | return (x >> 24) & 0xFF; | 6 | return (x >> 24) & 0xFF; |
diff --git a/arch/x86/include/asm/mach-default/mach_apicdef.h b/arch/x86/include/asm/mach-default/mach_apicdef.h index 8318d121ea66..5141085962d3 100644 --- a/arch/x86/include/asm/mach-default/mach_apicdef.h +++ b/arch/x86/include/asm/mach-default/mach_apicdef.h | |||
@@ -6,7 +6,6 @@ | |||
6 | #ifdef CONFIG_X86_64 | 6 | #ifdef CONFIG_X86_64 |
7 | #define SET_APIC_ID(x) (apic->set_apic_id(x)) | 7 | #define SET_APIC_ID(x) (apic->set_apic_id(x)) |
8 | #else | 8 | #else |
9 | #define DEFAULT_APIC_ID_MASK (0x0F<<24) | ||
10 | 9 | ||
11 | static inline unsigned default_get_apic_id(unsigned long x) | 10 | static inline unsigned default_get_apic_id(unsigned long x) |
12 | { | 11 | { |
diff --git a/arch/x86/include/asm/numaq/apicdef.h b/arch/x86/include/asm/numaq/apicdef.h index 6f2cc5df0b15..cd927d5bd505 100644 --- a/arch/x86/include/asm/numaq/apicdef.h +++ b/arch/x86/include/asm/numaq/apicdef.h | |||
@@ -1,8 +1,6 @@ | |||
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 NUMAQ_APIC_ID_MASK (0xF<<24) | ||
5 | |||
6 | static inline unsigned int numaq_get_apic_id(unsigned long x) | 4 | static inline unsigned int numaq_get_apic_id(unsigned long x) |
7 | { | 5 | { |
8 | return (x >> 24) & 0x0F; | 6 | return (x >> 24) & 0x0F; |
diff --git a/arch/x86/include/asm/summit/apicdef.h b/arch/x86/include/asm/summit/apicdef.h index 0373f0c7b5db..c24b0df2dec6 100644 --- a/arch/x86/include/asm/summit/apicdef.h +++ b/arch/x86/include/asm/summit/apicdef.h | |||
@@ -1,8 +1,6 @@ | |||
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 SUMMIT_APIC_ID_MASK (0xFF<<24) | ||
5 | |||
6 | static inline unsigned summit_get_apic_id(unsigned long x) | 4 | static inline unsigned summit_get_apic_id(unsigned long x) |
7 | { | 5 | { |
8 | return (x >> 24) & 0xFF; | 6 | return (x >> 24) & 0xFF; |
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c index 1f4ad4f77022..ee52c59aa3a4 100644 --- a/arch/x86/mach-generic/bigsmp.c +++ b/arch/x86/mach-generic/bigsmp.c | |||
@@ -92,7 +92,7 @@ struct genapic apic_bigsmp = { | |||
92 | 92 | ||
93 | .get_apic_id = bigsmp_get_apic_id, | 93 | .get_apic_id = bigsmp_get_apic_id, |
94 | .set_apic_id = NULL, | 94 | .set_apic_id = NULL, |
95 | .apic_id_mask = BIGSMP_APIC_ID_MASK, | 95 | .apic_id_mask = 0xFF << 24, |
96 | 96 | ||
97 | .cpu_mask_to_apicid = cpu_mask_to_apicid, | 97 | .cpu_mask_to_apicid = cpu_mask_to_apicid, |
98 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, | 98 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, |
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c index 239af25615b1..e4ed7e6d6263 100644 --- a/arch/x86/mach-generic/default.c +++ b/arch/x86/mach-generic/default.c | |||
@@ -73,7 +73,7 @@ struct genapic apic_default = { | |||
73 | 73 | ||
74 | .get_apic_id = default_get_apic_id, | 74 | .get_apic_id = default_get_apic_id, |
75 | .set_apic_id = NULL, | 75 | .set_apic_id = NULL, |
76 | .apic_id_mask = DEFAULT_APIC_ID_MASK, | 76 | .apic_id_mask = 0x0F << 24, |
77 | 77 | ||
78 | .cpu_mask_to_apicid = cpu_mask_to_apicid, | 78 | .cpu_mask_to_apicid = cpu_mask_to_apicid, |
79 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, | 79 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, |
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c index 21fb33eea91b..3d046dec0c9a 100644 --- a/arch/x86/mach-generic/es7000.c +++ b/arch/x86/mach-generic/es7000.c | |||
@@ -128,7 +128,7 @@ struct genapic apic_es7000 = { | |||
128 | 128 | ||
129 | .get_apic_id = es7000_get_apic_id, | 129 | .get_apic_id = es7000_get_apic_id, |
130 | .set_apic_id = NULL, | 130 | .set_apic_id = NULL, |
131 | .apic_id_mask = ES7000_APIC_ID_MASK, | 131 | .apic_id_mask = 0xFF << 24, |
132 | 132 | ||
133 | .cpu_mask_to_apicid = cpu_mask_to_apicid, | 133 | .cpu_mask_to_apicid = cpu_mask_to_apicid, |
134 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, | 134 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, |
diff --git a/arch/x86/mach-generic/numaq.c b/arch/x86/mach-generic/numaq.c index 27d2d1f2d6f0..a7bf1aa02e1a 100644 --- a/arch/x86/mach-generic/numaq.c +++ b/arch/x86/mach-generic/numaq.c | |||
@@ -92,7 +92,7 @@ struct genapic apic_numaq = { | |||
92 | 92 | ||
93 | .get_apic_id = numaq_get_apic_id, | 93 | .get_apic_id = numaq_get_apic_id, |
94 | .set_apic_id = NULL, | 94 | .set_apic_id = NULL, |
95 | .apic_id_mask = NUMAQ_APIC_ID_MASK, | 95 | .apic_id_mask = 0x0F << 24, |
96 | 96 | ||
97 | .cpu_mask_to_apicid = cpu_mask_to_apicid, | 97 | .cpu_mask_to_apicid = cpu_mask_to_apicid, |
98 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, | 98 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, |
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c index f24cba1b29da..a0ae6b910488 100644 --- a/arch/x86/mach-generic/summit.c +++ b/arch/x86/mach-generic/summit.c | |||
@@ -72,7 +72,7 @@ struct genapic apic_summit = { | |||
72 | 72 | ||
73 | .get_apic_id = summit_get_apic_id, | 73 | .get_apic_id = summit_get_apic_id, |
74 | .set_apic_id = NULL, | 74 | .set_apic_id = NULL, |
75 | .apic_id_mask = SUMMIT_APIC_ID_MASK, | 75 | .apic_id_mask = 0xFF << 24, |
76 | 76 | ||
77 | .cpu_mask_to_apicid = cpu_mask_to_apicid, | 77 | .cpu_mask_to_apicid = cpu_mask_to_apicid, |
78 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, | 78 | .cpu_mask_to_apicid_and = cpu_mask_to_apicid_and, |