aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-11-04 17:57:01 -0500
committerThomas Gleixner <tglx@linutronix.de>2015-11-05 07:07:52 -0500
commit53be0fac8bdaeec87e0df7d0334345421d2be187 (patch)
tree18b2fcd96b7a6ae9524ca87f5728c509c6a76c6d
parent7b6ce46cb3d096831dea3accacee4717c66abac8 (diff)
x86/apic: Implement default single target IPI function
apic_physflat and bigsmp_apic can share that implementation. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Borislav Petkov <bp@alien.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Travis <travis@sgi.com> Cc: Daniel J Blueman <daniel@numascale.com> Link: http://lkml.kernel.org/r/20151104220848.898543767@linutronix.de
-rw-r--r--arch/x86/include/asm/ipi.h1
-rw-r--r--arch/x86/kernel/apic/ipi.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/include/asm/ipi.h b/arch/x86/include/asm/ipi.h
index 615fa9061b57..22998a8f8d28 100644
--- a/arch/x86/include/asm/ipi.h
+++ b/arch/x86/include/asm/ipi.h
@@ -119,6 +119,7 @@ static inline void
119 native_apic_mem_write(APIC_ICR, cfg); 119 native_apic_mem_write(APIC_ICR, cfg);
120} 120}
121 121
122extern void default_send_IPI_single_phys(int cpu, int vector);
122extern void default_send_IPI_mask_sequence_phys(const struct cpumask *mask, 123extern void default_send_IPI_mask_sequence_phys(const struct cpumask *mask,
123 int vector); 124 int vector);
124extern void default_send_IPI_mask_allbutself_phys(const struct cpumask *mask, 125extern void default_send_IPI_mask_allbutself_phys(const struct cpumask *mask,
diff --git a/arch/x86/kernel/apic/ipi.c b/arch/x86/kernel/apic/ipi.c
index 62071569bd50..4fcffbf024c9 100644
--- a/arch/x86/kernel/apic/ipi.c
+++ b/arch/x86/kernel/apic/ipi.c
@@ -18,6 +18,16 @@
18#include <asm/proto.h> 18#include <asm/proto.h>
19#include <asm/ipi.h> 19#include <asm/ipi.h>
20 20
21void default_send_IPI_single_phys(int cpu, int vector)
22{
23 unsigned long flags;
24
25 local_irq_save(flags);
26 __default_send_IPI_dest_field(per_cpu(x86_cpu_to_apicid, cpu),
27 vector, APIC_DEST_PHYSICAL);
28 local_irq_restore(flags);
29}
30
21void default_send_IPI_mask_sequence_phys(const struct cpumask *mask, int vector) 31void default_send_IPI_mask_sequence_phys(const struct cpumask *mask, int vector)
22{ 32{
23 unsigned long query_cpu; 33 unsigned long query_cpu;