From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751489AbdHRJCd (ORCPT ); Fri, 18 Aug 2017 05:02:33 -0400 Received: from terminus.zytor.com ([65.50.211.136]:38821 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751036AbdHRJCa (ORCPT ); Fri, 18 Aug 2017 05:02:30 -0400 Date: Fri, 18 Aug 2017 01:58:05 -0700 From: tip-bot for Marc Zyngier Message-ID: Cc: xuwei5@hisilicon.com, hpa@zytor.com, sebastian.hesselbarth@gmail.com, paul.burton@imgtec.com, jason@lakedaemon.net, cernekee@gmail.com, chris@zankel.net, matt.redfearn@imgtec.com, f.fainelli@gmail.com, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, jcmvbkbc@gmail.com, mingo@kernel.org, andrew@lunn.ch, gregory.clement@free-electrons.com, james.hogan@imgtec.com, tglx@linutronix.de Reply-To: f.fainelli@gmail.com, matt.redfearn@imgtec.com, sebastian.hesselbarth@gmail.com, paul.burton@imgtec.com, hpa@zytor.com, xuwei5@hisilicon.com, cernekee@gmail.com, chris@zankel.net, jason@lakedaemon.net, james.hogan@imgtec.com, tglx@linutronix.de, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, gregory.clement@free-electrons.com, mingo@kernel.org, jcmvbkbc@gmail.com, andrew@lunn.ch In-Reply-To: <20170818083925.10108-3-marc.zyngier@arm.com> References: <20170818083925.10108-3-marc.zyngier@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] genirq/proc: Use the the accessor to report the effective affinity Git-Commit-ID: 6bc6d4abd22e890cf69a05554fa8f8f83f351515 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: 6bc6d4abd22e890cf69a05554fa8f8f83f351515 Gitweb: http://git.kernel.org/tip/6bc6d4abd22e890cf69a05554fa8f8f83f351515 Author: Marc Zyngier AuthorDate: Fri, 18 Aug 2017 09:39:15 +0100 Committer: Thomas Gleixner CommitDate: Fri, 18 Aug 2017 10:54:39 +0200 genirq/proc: Use the the accessor to report the effective affinity If CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK is defined, but that the interrupt is not single target, the effective affinity reported in /proc/irq/x/effective_affinity will be empty, which is not the truth. Instead, use the accessor to report the affinity, which will pick the right mask. Signed-off-by: Marc Zyngier Signed-off-by: Thomas Gleixner Cc: Andrew Lunn Cc: James Hogan Cc: Jason Cooper Cc: Paul Burton Cc: Chris Zankel Cc: Kevin Cernekee Cc: Wei Xu Cc: Max Filippov Cc: Florian Fainelli Cc: Gregory Clement Cc: Matt Redfearn Cc: Sebastian Hesselbarth Link: http://lkml.kernel.org/r/20170818083925.10108-3-marc.zyngier@arm.com --- kernel/irq/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index 7f9642a..0534781 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c @@ -61,7 +61,7 @@ static int show_irq_affinity(int type, struct seq_file *m) case EFFECTIVE: case EFFECTIVE_LIST: #ifdef CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK - mask = desc->irq_common_data.effective_affinity; + mask = irq_data_get_effective_affinity_mask(&desc->irq_data); break; #else return -EINVAL;