Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762720AbZAHVZ6 (ORCPT ); Thu, 8 Jan 2009 16:25:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752249AbZAHVZu (ORCPT ); Thu, 8 Jan 2009 16:25:50 -0500 Received: from relay1.sgi.com ([192.48.179.29]:56195 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752003AbZAHVZt (ORCPT ); Thu, 8 Jan 2009 16:25:49 -0500 Message-ID: <49666F5B.2090605@sgi.com> Date: Thu, 08 Jan 2009 13:25:47 -0800 From: Mike Travis User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: David Daney CC: Linus Torvalds , rusty@rustcorp.com.au, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: Re: [PATCH] cpumask fallout: Initialize irq_default_affinity earlier. References: <1231446081-8448-1-git-send-email-ddaney@caviumnetworks.com> <496666CE.3050205@caviumnetworks.com> In-Reply-To: <496666CE.3050205@caviumnetworks.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 993 Lines: 33 David Daney wrote: > Linus Torvalds wrote: > [...] >> In fact, I think it already is a no-op in the UP case, and you can >> literally just do >> >> static inline void __init init_irq_default_affinity(void) >> { >> alloc_cpumask_var(&irq_default_affinity, GFP_KERNEL); >> cpumask_setall(irq_default_affinity); >> } >> >> and be done with it. I think it should all compile away to nothing if >> CONFIG_SMP isn't set. > > The 'inline' seems gratuitous to me. Since it is static GCC should do > the Right Thing. However since you suggested it, I am testing it that way. > > David Daney It will probably need to be: alloc_bootmem_cpumask_var(&irq_default_affinity); I am testing it on x86_64 as well. Thanks, Mike -- 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/