aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/genapic_64.c2
-rw-r--r--arch/x86/kernel/genapic_flat_64.c2
-rw-r--r--include/asm-x86/genapic_64.h2
-rw-r--r--include/asm-x86/hw_irq.h2
-rw-r--r--include/asm-x86/mach-default/mach_apic.h1
5 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/kernel/genapic_64.c b/arch/x86/kernel/genapic_64.c
index 7414871751a7..6657de609dcb 100644
--- a/arch/x86/kernel/genapic_64.c
+++ b/arch/x86/kernel/genapic_64.c
@@ -61,7 +61,7 @@ void __init setup_apic_routing(void)
61 61
62/* Same for both flat and physical. */ 62/* Same for both flat and physical. */
63 63
64void send_IPI_self(int vector) 64void apic_send_IPI_self(int vector)
65{ 65{
66 __send_IPI_shortcut(APIC_DEST_SELF, vector, APIC_DEST_PHYSICAL); 66 __send_IPI_shortcut(APIC_DEST_SELF, vector, APIC_DEST_PHYSICAL);
67} 67}
diff --git a/arch/x86/kernel/genapic_flat_64.c b/arch/x86/kernel/genapic_flat_64.c
index 400ed8df8b4e..735586822135 100644
--- a/arch/x86/kernel/genapic_flat_64.c
+++ b/arch/x86/kernel/genapic_flat_64.c
@@ -131,6 +131,7 @@ struct genapic apic_flat = {
131 .send_IPI_all = flat_send_IPI_all, 131 .send_IPI_all = flat_send_IPI_all,
132 .send_IPI_allbutself = flat_send_IPI_allbutself, 132 .send_IPI_allbutself = flat_send_IPI_allbutself,
133 .send_IPI_mask = flat_send_IPI_mask, 133 .send_IPI_mask = flat_send_IPI_mask,
134 .send_IPI_self = apic_send_IPI_self,
134 .cpu_mask_to_apicid = flat_cpu_mask_to_apicid, 135 .cpu_mask_to_apicid = flat_cpu_mask_to_apicid,
135 .phys_pkg_id = phys_pkg_id, 136 .phys_pkg_id = phys_pkg_id,
136 .read_apic_id = read_xapic_id, 137 .read_apic_id = read_xapic_id,
@@ -196,6 +197,7 @@ struct genapic apic_physflat = {
196 .send_IPI_all = physflat_send_IPI_all, 197 .send_IPI_all = physflat_send_IPI_all,
197 .send_IPI_allbutself = physflat_send_IPI_allbutself, 198 .send_IPI_allbutself = physflat_send_IPI_allbutself,
198 .send_IPI_mask = physflat_send_IPI_mask, 199 .send_IPI_mask = physflat_send_IPI_mask,
200 .send_IPI_self = apic_send_IPI_self,
199 .cpu_mask_to_apicid = physflat_cpu_mask_to_apicid, 201 .cpu_mask_to_apicid = physflat_cpu_mask_to_apicid,
200 .phys_pkg_id = phys_pkg_id, 202 .phys_pkg_id = phys_pkg_id,
201 .read_apic_id = read_xapic_id, 203 .read_apic_id = read_xapic_id,
diff --git a/include/asm-x86/genapic_64.h b/include/asm-x86/genapic_64.h
index d567abc347a9..6777d71aabc9 100644
--- a/include/asm-x86/genapic_64.h
+++ b/include/asm-x86/genapic_64.h
@@ -24,6 +24,7 @@ struct genapic {
24 void (*send_IPI_mask)(cpumask_t mask, int vector); 24 void (*send_IPI_mask)(cpumask_t mask, int vector);
25 void (*send_IPI_allbutself)(int vector); 25 void (*send_IPI_allbutself)(int vector);
26 void (*send_IPI_all)(int vector); 26 void (*send_IPI_all)(int vector);
27 void (*send_IPI_self)(int vector);
27 /* */ 28 /* */
28 unsigned int (*cpu_mask_to_apicid)(cpumask_t cpumask); 29 unsigned int (*cpu_mask_to_apicid)(cpumask_t cpumask);
29 unsigned int (*phys_pkg_id)(int index_msb); 30 unsigned int (*phys_pkg_id)(int index_msb);
@@ -36,6 +37,7 @@ extern struct genapic apic_flat;
36extern struct genapic apic_physflat; 37extern struct genapic apic_physflat;
37extern int acpi_madt_oem_check(char *, char *); 38extern int acpi_madt_oem_check(char *, char *);
38 39
40extern void apic_send_IPI_self(int vector);
39enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC}; 41enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
40extern enum uv_system_type get_uv_system_type(void); 42extern enum uv_system_type get_uv_system_type(void);
41extern int is_uv_system(void); 43extern int is_uv_system(void);
diff --git a/include/asm-x86/hw_irq.h b/include/asm-x86/hw_irq.h
index 18f067c310f7..2ae47e7c1063 100644
--- a/include/asm-x86/hw_irq.h
+++ b/include/asm-x86/hw_irq.h
@@ -72,7 +72,9 @@ extern void enable_IO_APIC(void);
72#endif 72#endif
73 73
74/* IPI functions */ 74/* IPI functions */
75#ifdef CONFIG_X86_32
75extern void send_IPI_self(int vector); 76extern void send_IPI_self(int vector);
77#endif
76extern void send_IPI(int dest, int vector); 78extern void send_IPI(int dest, int vector);
77 79
78/* Statistics */ 80/* Statistics */
diff --git a/include/asm-x86/mach-default/mach_apic.h b/include/asm-x86/mach-default/mach_apic.h
index d172c554ab9f..e06d23975d6a 100644
--- a/include/asm-x86/mach-default/mach_apic.h
+++ b/include/asm-x86/mach-default/mach_apic.h
@@ -31,6 +31,7 @@ static inline cpumask_t target_cpus(void)
31#define phys_pkg_id (genapic->phys_pkg_id) 31#define phys_pkg_id (genapic->phys_pkg_id)
32#define vector_allocation_domain (genapic->vector_allocation_domain) 32#define vector_allocation_domain (genapic->vector_allocation_domain)
33#define read_apic_id (genapic->read_apic_id) 33#define read_apic_id (genapic->read_apic_id)
34#define send_IPI_self (genapic->send_IPI_self)
34extern void setup_apic_routing(void); 35extern void setup_apic_routing(void);
35#else 36#else
36#define INT_DELIVERY_MODE dest_LowestPrio 37#define INT_DELIVERY_MODE dest_LowestPrio