diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-27 18:14:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:06 -0500 |
commit | c8d46cf06dc2e3a8f57a350eb9f9b19fd7f2ffe5 (patch) | |
tree | fe5ceac244165e5726f310027588cf6e1b6e60e6 /arch/x86/include/asm | |
parent | 6781d948cc05b02df915650f2eb49550a1631df9 (diff) |
x86: rename 'genapic' to 'apic'
Rename genapic-> to apic-> references because in a future chagne we'll
open-code all the indirect calls (instead of obscuring them via macros),
so we want this reference to be as short as possible.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/genapic.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apic.h | 22 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apicdef.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_ipi.h | 8 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-generic/mach_apic.h | 50 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-generic/mach_apicdef.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-generic/mach_ipi.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-generic/mach_wakecpu.h | 14 |
8 files changed, 56 insertions, 56 deletions
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h index c27efde0523d..3970da3245c8 100644 --- a/arch/x86/include/asm/genapic.h +++ b/arch/x86/include/asm/genapic.h | |||
@@ -94,7 +94,7 @@ struct genapic { | |||
94 | void (*inquire_remote_apic)(int apicid); | 94 | void (*inquire_remote_apic)(int apicid); |
95 | }; | 95 | }; |
96 | 96 | ||
97 | extern struct genapic *genapic; | 97 | extern struct genapic *apic; |
98 | 98 | ||
99 | #ifdef CONFIG_X86_32 | 99 | #ifdef CONFIG_X86_32 |
100 | 100 | ||
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h index cc09cbbee27e..2448b927b644 100644 --- a/arch/x86/include/asm/mach-default/mach_apic.h +++ b/arch/x86/include/asm/mach-default/mach_apic.h | |||
@@ -22,18 +22,18 @@ static inline const struct cpumask *target_cpus(void) | |||
22 | 22 | ||
23 | #ifdef CONFIG_X86_64 | 23 | #ifdef CONFIG_X86_64 |
24 | #include <asm/genapic.h> | 24 | #include <asm/genapic.h> |
25 | #define INT_DELIVERY_MODE (genapic->int_delivery_mode) | 25 | #define INT_DELIVERY_MODE (apic->int_delivery_mode) |
26 | #define INT_DEST_MODE (genapic->int_dest_mode) | 26 | #define INT_DEST_MODE (apic->int_dest_mode) |
27 | #define TARGET_CPUS (genapic->target_cpus()) | 27 | #define TARGET_CPUS (apic->target_cpus()) |
28 | #define apic_id_registered (genapic->apic_id_registered) | 28 | #define apic_id_registered (apic->apic_id_registered) |
29 | #define init_apic_ldr (genapic->init_apic_ldr) | 29 | #define init_apic_ldr (apic->init_apic_ldr) |
30 | #define cpu_mask_to_apicid (genapic->cpu_mask_to_apicid) | 30 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) |
31 | #define cpu_mask_to_apicid_and (genapic->cpu_mask_to_apicid_and) | 31 | #define cpu_mask_to_apicid_and (apic->cpu_mask_to_apicid_and) |
32 | #define phys_pkg_id (genapic->phys_pkg_id) | 32 | #define phys_pkg_id (apic->phys_pkg_id) |
33 | #define vector_allocation_domain (genapic->vector_allocation_domain) | 33 | #define vector_allocation_domain (apic->vector_allocation_domain) |
34 | #define read_apic_id() (GET_APIC_ID(apic_read(APIC_ID))) | 34 | #define read_apic_id() (GET_APIC_ID(apic_read(APIC_ID))) |
35 | #define send_IPI_self (genapic->send_IPI_self) | 35 | #define send_IPI_self (apic->send_IPI_self) |
36 | #define wakeup_secondary_cpu (genapic->wakeup_cpu) | 36 | #define wakeup_secondary_cpu (apic->wakeup_cpu) |
37 | extern void setup_apic_routing(void); | 37 | extern void setup_apic_routing(void); |
38 | #else | 38 | #else |
39 | #define INT_DELIVERY_MODE dest_LowestPrio | 39 | #define INT_DELIVERY_MODE dest_LowestPrio |
diff --git a/arch/x86/include/asm/mach-default/mach_apicdef.h b/arch/x86/include/asm/mach-default/mach_apicdef.h index 53179936d6c6..b4dcc0971c76 100644 --- a/arch/x86/include/asm/mach-default/mach_apicdef.h +++ b/arch/x86/include/asm/mach-default/mach_apicdef.h | |||
@@ -4,9 +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 (genapic->apic_id_mask) | 7 | #define APIC_ID_MASK (apic->apic_id_mask) |
8 | #define GET_APIC_ID(x) (genapic->get_apic_id(x)) | 8 | #define GET_APIC_ID(x) (apic->get_apic_id(x)) |
9 | #define SET_APIC_ID(x) (genapic->set_apic_id(x)) | 9 | #define SET_APIC_ID(x) (apic->set_apic_id(x)) |
10 | #else | 10 | #else |
11 | #define APIC_ID_MASK (0xF<<24) | 11 | #define APIC_ID_MASK (0xF<<24) |
12 | static inline unsigned get_apic_id(unsigned long x) | 12 | static inline unsigned get_apic_id(unsigned long x) |
diff --git a/arch/x86/include/asm/mach-default/mach_ipi.h b/arch/x86/include/asm/mach-default/mach_ipi.h index 191312d155da..089399643dfa 100644 --- a/arch/x86/include/asm/mach-default/mach_ipi.h +++ b/arch/x86/include/asm/mach-default/mach_ipi.h | |||
@@ -12,8 +12,8 @@ extern int no_broadcast; | |||
12 | 12 | ||
13 | #ifdef CONFIG_X86_64 | 13 | #ifdef CONFIG_X86_64 |
14 | #include <asm/genapic.h> | 14 | #include <asm/genapic.h> |
15 | #define send_IPI_mask (genapic->send_IPI_mask) | 15 | #define send_IPI_mask (apic->send_IPI_mask) |
16 | #define send_IPI_mask_allbutself (genapic->send_IPI_mask_allbutself) | 16 | #define send_IPI_mask_allbutself (apic->send_IPI_mask_allbutself) |
17 | #else | 17 | #else |
18 | static inline void send_IPI_mask(const struct cpumask *mask, int vector) | 18 | static inline void send_IPI_mask(const struct cpumask *mask, int vector) |
19 | { | 19 | { |
@@ -39,8 +39,8 @@ static inline void __local_send_IPI_all(int vector) | |||
39 | } | 39 | } |
40 | 40 | ||
41 | #ifdef CONFIG_X86_64 | 41 | #ifdef CONFIG_X86_64 |
42 | #define send_IPI_allbutself (genapic->send_IPI_allbutself) | 42 | #define send_IPI_allbutself (apic->send_IPI_allbutself) |
43 | #define send_IPI_all (genapic->send_IPI_all) | 43 | #define send_IPI_all (apic->send_IPI_all) |
44 | #else | 44 | #else |
45 | static inline void send_IPI_allbutself(int vector) | 45 | static inline void send_IPI_allbutself(int vector) |
46 | { | 46 | { |
diff --git a/arch/x86/include/asm/mach-generic/mach_apic.h b/arch/x86/include/asm/mach-generic/mach_apic.h index 48553e958ad5..59972d94ff18 100644 --- a/arch/x86/include/asm/mach-generic/mach_apic.h +++ b/arch/x86/include/asm/mach-generic/mach_apic.h | |||
@@ -3,32 +3,32 @@ | |||
3 | 3 | ||
4 | #include <asm/genapic.h> | 4 | #include <asm/genapic.h> |
5 | 5 | ||
6 | #define esr_disable (genapic->ESR_DISABLE) | 6 | #define esr_disable (apic->ESR_DISABLE) |
7 | #define NO_BALANCE_IRQ (genapic->no_balance_irq) | 7 | #define NO_BALANCE_IRQ (apic->no_balance_irq) |
8 | #define INT_DELIVERY_MODE (genapic->int_delivery_mode) | 8 | #define INT_DELIVERY_MODE (apic->int_delivery_mode) |
9 | #define INT_DEST_MODE (genapic->int_dest_mode) | 9 | #define INT_DEST_MODE (apic->int_dest_mode) |
10 | #undef APIC_DEST_LOGICAL | 10 | #undef APIC_DEST_LOGICAL |
11 | #define APIC_DEST_LOGICAL (genapic->apic_destination_logical) | 11 | #define APIC_DEST_LOGICAL (apic->apic_destination_logical) |
12 | #define TARGET_CPUS (genapic->target_cpus()) | 12 | #define TARGET_CPUS (apic->target_cpus()) |
13 | #define apic_id_registered (genapic->apic_id_registered) | 13 | #define apic_id_registered (apic->apic_id_registered) |
14 | #define init_apic_ldr (genapic->init_apic_ldr) | 14 | #define init_apic_ldr (apic->init_apic_ldr) |
15 | #define ioapic_phys_id_map (genapic->ioapic_phys_id_map) | 15 | #define ioapic_phys_id_map (apic->ioapic_phys_id_map) |
16 | #define setup_apic_routing (genapic->setup_apic_routing) | 16 | #define setup_apic_routing (apic->setup_apic_routing) |
17 | #define multi_timer_check (genapic->multi_timer_check) | 17 | #define multi_timer_check (apic->multi_timer_check) |
18 | #define apicid_to_node (genapic->apicid_to_node) | 18 | #define apicid_to_node (apic->apicid_to_node) |
19 | #define cpu_to_logical_apicid (genapic->cpu_to_logical_apicid) | 19 | #define cpu_to_logical_apicid (apic->cpu_to_logical_apicid) |
20 | #define cpu_present_to_apicid (genapic->cpu_present_to_apicid) | 20 | #define cpu_present_to_apicid (apic->cpu_present_to_apicid) |
21 | #define apicid_to_cpu_present (genapic->apicid_to_cpu_present) | 21 | #define apicid_to_cpu_present (apic->apicid_to_cpu_present) |
22 | #define setup_portio_remap (genapic->setup_portio_remap) | 22 | #define setup_portio_remap (apic->setup_portio_remap) |
23 | #define check_apicid_present (genapic->check_apicid_present) | 23 | #define check_apicid_present (apic->check_apicid_present) |
24 | #define check_phys_apicid_present (genapic->check_phys_apicid_present) | 24 | #define check_phys_apicid_present (apic->check_phys_apicid_present) |
25 | #define check_apicid_used (genapic->check_apicid_used) | 25 | #define check_apicid_used (apic->check_apicid_used) |
26 | #define cpu_mask_to_apicid (genapic->cpu_mask_to_apicid) | 26 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) |
27 | #define cpu_mask_to_apicid_and (genapic->cpu_mask_to_apicid_and) | 27 | #define cpu_mask_to_apicid_and (apic->cpu_mask_to_apicid_and) |
28 | #define vector_allocation_domain (genapic->vector_allocation_domain) | 28 | #define vector_allocation_domain (apic->vector_allocation_domain) |
29 | #define enable_apic_mode (genapic->enable_apic_mode) | 29 | #define enable_apic_mode (apic->enable_apic_mode) |
30 | #define phys_pkg_id (genapic->phys_pkg_id) | 30 | #define phys_pkg_id (apic->phys_pkg_id) |
31 | #define wakeup_secondary_cpu (genapic->wakeup_cpu) | 31 | #define wakeup_secondary_cpu (apic->wakeup_cpu) |
32 | 32 | ||
33 | extern void generic_bigsmp_probe(void); | 33 | extern void generic_bigsmp_probe(void); |
34 | 34 | ||
diff --git a/arch/x86/include/asm/mach-generic/mach_apicdef.h b/arch/x86/include/asm/mach-generic/mach_apicdef.h index 68041f3802f4..acc9adddb344 100644 --- a/arch/x86/include/asm/mach-generic/mach_apicdef.h +++ b/arch/x86/include/asm/mach-generic/mach_apicdef.h | |||
@@ -4,8 +4,8 @@ | |||
4 | #ifndef APIC_DEFINITION | 4 | #ifndef APIC_DEFINITION |
5 | #include <asm/genapic.h> | 5 | #include <asm/genapic.h> |
6 | 6 | ||
7 | #define GET_APIC_ID (genapic->get_apic_id) | 7 | #define GET_APIC_ID (apic->get_apic_id) |
8 | #define APIC_ID_MASK (genapic->apic_id_mask) | 8 | #define APIC_ID_MASK (apic->apic_id_mask) |
9 | #endif | 9 | #endif |
10 | 10 | ||
11 | #endif /* _ASM_X86_MACH_GENERIC_MACH_APICDEF_H */ | 11 | #endif /* _ASM_X86_MACH_GENERIC_MACH_APICDEF_H */ |
diff --git a/arch/x86/include/asm/mach-generic/mach_ipi.h b/arch/x86/include/asm/mach-generic/mach_ipi.h index ffd637e3c3d9..75e54bd6cbdc 100644 --- a/arch/x86/include/asm/mach-generic/mach_ipi.h +++ b/arch/x86/include/asm/mach-generic/mach_ipi.h | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | #include <asm/genapic.h> | 4 | #include <asm/genapic.h> |
5 | 5 | ||
6 | #define send_IPI_mask (genapic->send_IPI_mask) | 6 | #define send_IPI_mask (apic->send_IPI_mask) |
7 | #define send_IPI_allbutself (genapic->send_IPI_allbutself) | 7 | #define send_IPI_allbutself (apic->send_IPI_allbutself) |
8 | #define send_IPI_all (genapic->send_IPI_all) | 8 | #define send_IPI_all (apic->send_IPI_all) |
9 | 9 | ||
10 | #endif /* _ASM_X86_MACH_GENERIC_MACH_IPI_H */ | 10 | #endif /* _ASM_X86_MACH_GENERIC_MACH_IPI_H */ |
diff --git a/arch/x86/include/asm/mach-generic/mach_wakecpu.h b/arch/x86/include/asm/mach-generic/mach_wakecpu.h index 1ab16b168c8a..22006bbee617 100644 --- a/arch/x86/include/asm/mach-generic/mach_wakecpu.h +++ b/arch/x86/include/asm/mach-generic/mach_wakecpu.h | |||
@@ -1,12 +1,12 @@ | |||
1 | #ifndef _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H | 1 | #ifndef _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H |
2 | #define _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H | 2 | #define _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H |
3 | 3 | ||
4 | #define TRAMPOLINE_PHYS_LOW (genapic->trampoline_phys_low) | 4 | #define TRAMPOLINE_PHYS_LOW (apic->trampoline_phys_low) |
5 | #define TRAMPOLINE_PHYS_HIGH (genapic->trampoline_phys_high) | 5 | #define TRAMPOLINE_PHYS_HIGH (apic->trampoline_phys_high) |
6 | #define wait_for_init_deassert (genapic->wait_for_init_deassert) | 6 | #define wait_for_init_deassert (apic->wait_for_init_deassert) |
7 | #define smp_callin_clear_local_apic (genapic->smp_callin_clear_local_apic) | 7 | #define smp_callin_clear_local_apic (apic->smp_callin_clear_local_apic) |
8 | #define store_NMI_vector (genapic->store_NMI_vector) | 8 | #define store_NMI_vector (apic->store_NMI_vector) |
9 | #define restore_NMI_vector (genapic->restore_NMI_vector) | 9 | #define restore_NMI_vector (apic->restore_NMI_vector) |
10 | #define inquire_remote_apic (genapic->inquire_remote_apic) | 10 | #define inquire_remote_apic (apic->inquire_remote_apic) |
11 | 11 | ||
12 | #endif /* _ASM_X86_MACH_GENERIC_MACH_APIC_H */ | 12 | #endif /* _ASM_X86_MACH_GENERIC_MACH_APIC_H */ |