[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 05 May 2010 13:56:42 -0700
From: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...el.com>
To: tglx@...utronix.de, davem@...emloft.net, arjan@...ux.jf.intel.com,
bhutchings@...arflare.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH linux-next] irq: Clear CPU mask in affinity_hint when none is
provided
When an interrupt is disabled and torn down, the CPU mask
returned through affinity_hint right now is all CPUs. Also, for
drivers that don't provide an affinity_hint mask, this can be
misleading. There should be no hint at all, meaning an empty
CPU mask.
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...el.com>
---
kernel/irq/proc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index e1e7408..9ffa24d 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -45,7 +45,7 @@ static int irq_affinity_hint_proc_show(struct seq_file *m, void *v)
if (desc->affinity_hint)
cpumask_copy(mask, desc->affinity_hint);
else
- cpumask_setall(mask);
+ cpumask_clear(mask);
raw_spin_unlock_irqrestore(&desc->lock, flags);
seq_cpumask(m, mask);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists