lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-53be0fac8bdaeec87e0df7d0334345421d2be187@git.kernel.org>
Date:	Thu, 5 Nov 2015 06:43:31 -0800
From:	tip-bot for Thomas Gleixner <tipbot@...or.com>
To:	linux-tip-commits@...r.kernel.org
Cc:	hpa@...or.com, daniel@...ascale.com, torvalds@...ux-foundation.org,
	travis@....com, bp@...en.de, tglx@...utronix.de, mingo@...nel.org,
	linux-kernel@...r.kernel.org, peterz@...radead.org
Subject: [tip:x86/apic] x86/apic:
  Implement default single target IPI function

Commit-ID:  53be0fac8bdaeec87e0df7d0334345421d2be187
Gitweb:     http://git.kernel.org/tip/53be0fac8bdaeec87e0df7d0334345421d2be187
Author:     Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Wed, 4 Nov 2015 22:57:01 +0000
Committer:  Thomas Gleixner <tglx@...utronix.de>
CommitDate: Thu, 5 Nov 2015 13:07:52 +0100

x86/apic: Implement default single target IPI function

apic_physflat and bigsmp_apic can share that implementation.

Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: Ingo Molnar <mingo@...nel.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Borislav Petkov <bp@...en.de>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Mike Travis <travis@....com>
Cc: Daniel J Blueman <daniel@...ascale.com>
Link: http://lkml.kernel.org/r/20151104220848.898543767@linutronix.de
---
 arch/x86/include/asm/ipi.h |  1 +
 arch/x86/kernel/apic/ipi.c | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/arch/x86/include/asm/ipi.h b/arch/x86/include/asm/ipi.h
index 615fa90..22998a8 100644
--- a/arch/x86/include/asm/ipi.h
+++ b/arch/x86/include/asm/ipi.h
@@ -119,6 +119,7 @@ static inline void
 	native_apic_mem_write(APIC_ICR, cfg);
 }
 
+extern void default_send_IPI_single_phys(int cpu, int vector);
 extern void default_send_IPI_mask_sequence_phys(const struct cpumask *mask,
 						 int vector);
 extern 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 6207156..4fcffbf 100644
--- a/arch/x86/kernel/apic/ipi.c
+++ b/arch/x86/kernel/apic/ipi.c
@@ -18,6 +18,16 @@
 #include <asm/proto.h>
 #include <asm/ipi.h>
 
+void default_send_IPI_single_phys(int cpu, int vector)
+{
+	unsigned long flags;
+
+	local_irq_save(flags);
+	__default_send_IPI_dest_field(per_cpu(x86_cpu_to_apicid, cpu),
+				      vector, APIC_DEST_PHYSICAL);
+	local_irq_restore(flags);
+}
+
 void default_send_IPI_mask_sequence_phys(const struct cpumask *mask, int vector)
 {
 	unsigned long query_cpu;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ