Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755169Ab0DUC2s (ORCPT ); Tue, 20 Apr 2010 22:28:48 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:42397 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754403Ab0DUC2r (ORCPT ); Tue, 20 Apr 2010 22:28:47 -0400 Date: Tue, 20 Apr 2010 19:28:51 -0700 (PDT) Message-Id: <20100420.192851.267086166.davem@davemloft.net> To: peter.p.waskiewicz.jr@intel.com Cc: tglx@linutronix.de, arjan@linux.jf.intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC: linux-next 1/2] irq: Add CPU mask affinity hint callback framework From: David Miller In-Reply-To: <20100419045741.30276.23233.stgit@ppwaskie-hc2.jf.intel.com> References: <20100419045741.30276.23233.stgit@ppwaskie-hc2.jf.intel.com> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 25 From: Peter P Waskiewicz Jr Date: Sun, 18 Apr 2010 21:57:41 -0700 > This patch adds a callback function pointer to the irq_desc > structure, along with a registration function and a read-only > proc entry for each interrupt. > > This affinity_hint handle for each interrupt can be used by > underlying drivers that need a better mechanism to control > interrupt affinity. The underlying driver can register a > callback for the interrupt, which will allow the driver to > provide the CPU mask for the interrupt to anything that > requests it. The intent is to extend the userspace daemon, > irqbalance, to help hint to it a preferred CPU mask to balance > the interrupt into. > > Signed-off-by: Peter P Waskiewicz Jr I'll leave it to the IRQ layer experts whether this is appropriate or not, it doesn't look too bad to me. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/