aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-07-10 14:16:53 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-12 02:45:02 -0400
commitcff73a6ffaed726780b001937d2a42efde553922 (patch)
treea1fcc056d756d02e8a19abd4eb9db426f8e30d1d /include/asm-x86
parent13c88fb58d0112d47f7839f24a755715c6218822 (diff)
x64, x2apic/intr-remap: introcude self IPI to genapic routines
Introduce self IPI op for genapic. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Cc: akpm@linux-foundation.org Cc: arjan@linux.intel.com Cc: andi@firstfloor.org Cc: ebiederm@xmission.com Cc: jbarnes@virtuousgeek.org Cc: steiner@sgi.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-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
3 files changed, 5 insertions, 0 deletions
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