Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934105Ab0D3Sxe (ORCPT ); Fri, 30 Apr 2010 14:53:34 -0400 Received: from www.tglx.de ([62.245.132.106]:36196 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932593Ab0D3RMq (ORCPT ); Fri, 30 Apr 2010 13:12:46 -0400 Date: Thu, 29 Apr 2010 22:39:45 +0200 (CEST) From: Thomas Gleixner To: Peter P Waskiewicz Jr cc: "davem@davemloft.net" , "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 In-Reply-To: <1272572930.9614.3.camel@localhost> Message-ID: References: <20100419045741.30276.23233.stgit@ppwaskie-hc2.jf.intel.com> <1272563946.9614.1.camel@localhost> <1272572930.9614.3.camel@localhost> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1009 Lines: 27 On Thu, 29 Apr 2010, Peter P Waskiewicz Jr wrote: > On Thu, 2010-04-29 at 12:48 -0700, Thomas Gleixner wrote: > > Thinking more about it, I wonder whether you have a cpu_mask in your > > driver/device private data anyway. I bet you have :) > > Well, at this point we don't, but nothing says we can't. Somewhere you need to store that information in your driver, right ? > > So it should be sufficient to set a pointer to that cpu_mask in > > irq_desc and get rid of the callback completely. > > So "register" would just assign the pointer, and "unregister" would make > sure to NULL the mask pointer out. I like it. It'll sure clean things > up too. Yep, that'd be like the set_irq_chip() function. Just assign the pointer under desc->lock. Thanks, tglx -- 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/