mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Andrew Lunn <[email protected]> Cc: James Hogan <[email protected]> Cc: Jason Cooper <[email protected]> Cc: Paul Burton <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Kevin Cernekee <[email protected]> Cc: Wei Xu <[email protected]> Cc: Max Filippov <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Gregory Clement <[email protected]> Cc: Matt Redfearn <[email protected]> Cc: Sebastian Hesselbarth <[email protected]> Link: http://lkml.kernel.org/r/[email protected]
This commit is contained in:
1 parent
74def747bc
commit
6bc6d4abd2
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user