From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162274AbbKEOpy (ORCPT ); Thu, 5 Nov 2015 09:45:54 -0500 Received: from terminus.zytor.com ([198.137.202.10]:34630 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161427AbbKEOpv (ORCPT ); Thu, 5 Nov 2015 09:45:51 -0500 Date: Thu, 5 Nov 2015 06:45:11 -0800 From: tip-bot for Thomas Gleixner Message-ID: Cc: mingo@kernel.org, daniel@numascale.com, torvalds@linux-foundation.org, hpa@zytor.com, tglx@linutronix.de, bp@alien.de, linux-kernel@vger.kernel.org, travis@sgi.com, peterz@infradead.org Reply-To: hpa@zytor.com, torvalds@linux-foundation.org, daniel@numascale.com, mingo@kernel.org, tglx@linutronix.de, bp@alien.de, linux-kernel@vger.kernel.org, peterz@infradead.org, travis@sgi.com In-Reply-To: <20151104220849.296438009@linutronix.de> References: <20151104220849.296438009@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] x86/apic: Implement single IPI for x2apic_phys Git-Commit-ID: f2bffe8a3eef42a1cd3393d56acd9fe598d2119c 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: f2bffe8a3eef42a1cd3393d56acd9fe598d2119c Gitweb: http://git.kernel.org/tip/f2bffe8a3eef42a1cd3393d56acd9fe598d2119c Author: Thomas Gleixner AuthorDate: Wed, 4 Nov 2015 22:57:04 +0000 Committer: Thomas Gleixner CommitDate: Thu, 5 Nov 2015 13:07:53 +0100 x86/apic: Implement single IPI for x2apic_phys 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/20151104220849.296438009@linutronix.de --- arch/x86/kernel/apic/x2apic_phys.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c index 662e915..a1242e2 100644 --- a/arch/x86/kernel/apic/x2apic_phys.c +++ b/arch/x86/kernel/apic/x2apic_phys.c @@ -36,6 +36,14 @@ static int x2apic_acpi_madt_oem_check(char *oem_id, char *oem_table_id) return x2apic_enabled() && (x2apic_phys || x2apic_fadt_phys()); } +static void x2apic_send_IPI(int cpu, int vector) +{ + u32 dest = per_cpu(x86_cpu_to_apicid, cpu); + + x2apic_wrmsr_fence(); + __x2apic_send_IPI_dest(dest, vector, APIC_DEST_PHYSICAL); +} + static void __x2apic_send_IPI_mask(const struct cpumask *mask, int vector, int apic_dest) { @@ -122,6 +130,7 @@ static struct apic apic_x2apic_phys = { .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, + .send_IPI = x2apic_send_IPI, .send_IPI_mask = x2apic_send_IPI_mask, .send_IPI_mask_allbutself = x2apic_send_IPI_mask_allbutself, .send_IPI_allbutself = x2apic_send_IPI_allbutself,