From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162220AbbKEOoQ (ORCPT ); Thu, 5 Nov 2015 09:44:16 -0500 Received: from terminus.zytor.com ([198.137.202.10]:34537 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162090AbbKEOoM (ORCPT ); Thu, 5 Nov 2015 09:44:12 -0500 Date: Thu, 5 Nov 2015 06:43:31 -0800 From: tip-bot for Thomas Gleixner Message-ID: Cc: hpa@zytor.com, daniel@numascale.com, torvalds@linux-foundation.org, travis@sgi.com, bp@alien.de, tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org Reply-To: linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, bp@alien.de, tglx@linutronix.de, travis@sgi.com, daniel@numascale.com, torvalds@linux-foundation.org, hpa@zytor.com In-Reply-To: <20151104220848.898543767@linutronix.de> References: <20151104220848.898543767@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] x86/apic: Implement default single target IPI function Git-Commit-ID: 53be0fac8bdaeec87e0df7d0334345421d2be187 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 53be0fac8bdaeec87e0df7d0334345421d2be187 Gitweb: http://git.kernel.org/tip/53be0fac8bdaeec87e0df7d0334345421d2be187 Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:01 +0000 Committer: Thomas Gleixner 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 Reviewed-by: Ingo Molnar Cc: Linus Torvalds Cc: Borislav Petkov Cc: Peter Zijlstra Cc: Mike Travis Cc: Daniel J Blueman 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 #include +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;