From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH RFC: linux-next 1/2] irq: Add CPU mask affinity hint callback framework Date: Tue, 20 Apr 2010 19:28:51 -0700 (PDT) Message-ID: <20100420.192851.267086166.davem@davemloft.net> References: <20100419045741.30276.23233.stgit@ppwaskie-hc2.jf.intel.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: tglx@linutronix.de, arjan@linux.jf.intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: peter.p.waskiewicz.jr@intel.com Return-path: 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 In-Reply-To: <20100419045741.30276.23233.stgit@ppwaskie-hc2.jf.intel.com> Sender: netdev-owner@vger.kernel.org List-ID: 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.