aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mach-default
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-27 18:14:11 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:06 -0500
commitc8d46cf06dc2e3a8f57a350eb9f9b19fd7f2ffe5 (patch)
treefe5ceac244165e5726f310027588cf6e1b6e60e6 /arch/x86/include/asm/mach-default
parent6781d948cc05b02df915650f2eb49550a1631df9 (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/mach-default')
-rw-r--r--arch/x86/include/asm/mach-default/mach_apic.h22
-rw-r--r--arch/x86/include/asm/mach-default/mach_apicdef.h6
-rw-r--r--arch/x86/include/asm/mach-default/mach_ipi.h8
3 files changed, 18 insertions, 18 deletions
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)
37extern void setup_apic_routing(void); 37extern 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)
12static inline unsigned get_apic_id(unsigned long x) 12static 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
18static inline void send_IPI_mask(const struct cpumask *mask, int vector) 18static 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
45static inline void send_IPI_allbutself(int vector) 45static inline void send_IPI_allbutself(int vector)
46{ 46{