]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
genirq/proc: Use the the accessor to report the effective affinity
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 18 Aug 2017 08:39:15 +0000 (09:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 18 Aug 2017 08:54:39 +0000 (10:54 +0200)
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 <marc.zyngier@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Wei Xu <xuwei5@hisilicon.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Gregory Clement <gregory.clement@free-electrons.com>
Cc: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Link: http://lkml.kernel.org/r/20170818083925.10108-3-marc.zyngier@arm.com
kernel/irq/proc.c

index 7f9642a1e2670154002b42e62a77913dcf6366f2..0534781724d05f7c285977511acf11875df91d8c 100644 (file)
@@ -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;