From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753638AbdFVRKC (ORCPT ); Thu, 22 Jun 2017 13:10:02 -0400 Received: from terminus.zytor.com ([65.50.211.136]:40345 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753508AbdFVRKA (ORCPT ); Thu, 22 Jun 2017 13:10:00 -0400 Date: Thu, 22 Jun 2017 10:05:16 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: peterz@infradead.org, axboe@kernel.dk, hpa@zytor.com, hch@lst.de, keith.busch@intel.com, tglx@linutronix.de, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, mingo@kernel.org, mpe@ellerman.id.au Reply-To: peterz@infradead.org, axboe@kernel.dk, hpa@zytor.com, keith.busch@intel.com, hch@lst.de, tglx@linutronix.de, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, mingo@kernel.org, mpe@ellerman.id.au In-Reply-To: <20170619235446.799944725@linutronix.de> References: <20170619235446.799944725@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] xen/events: Add support for effective affinity mask Git-Commit-ID: ef1c2cc88531a967fa97d1ac1f3f8a64ee6910b4 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: ef1c2cc88531a967fa97d1ac1f3f8a64ee6910b4 Gitweb: http://git.kernel.org/tip/ef1c2cc88531a967fa97d1ac1f3f8a64ee6910b4 Author: Thomas Gleixner AuthorDate: Tue, 20 Jun 2017 01:37:45 +0200 Committer: Thomas Gleixner CommitDate: Thu, 22 Jun 2017 18:21:23 +0200 xen/events: Add support for effective affinity mask Update the effective affinity mask when an interrupt was successfully targeted to a CPU. Signed-off-by: Thomas Gleixner Cc: Jens Axboe Cc: Marc Zyngier Cc: Michael Ellerman Cc: Keith Busch Cc: Peter Zijlstra Cc: Christoph Hellwig Link: http://lkml.kernel.org/r/20170619235446.799944725@linutronix.de --- drivers/xen/events/events_base.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index b52852f..2e567d8 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -1343,8 +1343,12 @@ static int set_affinity_irq(struct irq_data *data, const struct cpumask *dest, bool force) { unsigned tcpu = cpumask_first_and(dest, cpu_online_mask); + int ret = rebind_irq_to_cpu(data->irq, tcpu); - return rebind_irq_to_cpu(data->irq, tcpu); + if (!ret) + irq_data_update_effective_affinity(data, cpumask_of(tcpu)); + + return ret; } static void enable_dynirq(struct irq_data *data)