From patchwork Wed May 5 20:56:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Waskiewicz Jr, Peter P" X-Patchwork-Id: 51743 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C5D58B7D45 for ; Thu, 6 May 2010 06:48:45 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757900Ab0EEUsO (ORCPT ); Wed, 5 May 2010 16:48:14 -0400 Received: from mga03.intel.com ([143.182.124.21]:60513 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753951Ab0EEUsN (ORCPT ); Wed, 5 May 2010 16:48:13 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 05 May 2010 13:48:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.52,335,1270450800"; d="scan'208";a="273764761" Received: from ppwaskie-hc2.jf.intel.com ([10.23.209.209]) by azsmga001.ch.intel.com with ESMTP; 05 May 2010 13:48:12 -0700 Received: from ppwaskie-hc2.jf.intel.com (localhost [127.0.0.1]) by ppwaskie-hc2.jf.intel.com (8.14.3/8.14.3) with ESMTP id o45Kv3cH005456; Wed, 5 May 2010 13:57:04 -0700 From: Peter P Waskiewicz Jr Subject: [PATCH linux-next] irq: Clear CPU mask in affinity_hint when none is provided To: tglx@linutronix.de, davem@davemloft.net, arjan@linux.jf.intel.com, bhutchings@solarflare.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 05 May 2010 13:56:42 -0700 Message-ID: <20100505205638.5426.87189.stgit@ppwaskie-hc2.jf.intel.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- kernel/irq/proc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);