[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <fcb0ae13-95b0-37d3-c1f9-44727e0f2ce8@huawei.com>
Date: Mon, 10 Aug 2020 10:29:50 +0800
From: Yunfeng Ye <yeyunfeng@...wei.com>
To: <tglx@...utronix.de>
CC: <linux-kernel@...r.kernel.org>, Shiyuan Hu <hushiyuan@...wei.com>,
Hewenliang <hewenliang4@...wei.com>
Subject: [PATCH] genirq/proc: Show percpu irq affinity
When the "affinity=" cmdline parameter is configured, the interrupt
affinity displayed in the proc directory does not match with that of the
the percu interrupt, and the percu interrupt uses desc->percu_affinity.
So show desc->percu_affinity in show_irq_affinity() for percpu
interrupt.
Signed-off-by: yeyunfeng <yeyunfeng@...wei.com>
---
kernel/irq/proc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index 32c071d7bc03..b9d0fa87b4b4 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -52,6 +52,8 @@ static int show_irq_affinity(int type, struct seq_file *m)
case AFFINITY:
case AFFINITY_LIST:
mask = desc->irq_common_data.affinity;
+ if (irqd_is_per_cpu(&desc->irq_data))
+ mask = desc->percpu_affinity;
#ifdef CONFIG_GENERIC_PENDING_IRQ
if (irqd_is_setaffinity_pending(&desc->irq_data))
mask = desc->pending_mask;
--
1.8.3.1
Powered by blists - more mailing lists