From: Mike Travis <travis@sgi.com>
To: David Daney <ddaney@caviumnetworks.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
rusty@rustcorp.com.au, linux-kernel@vger.kernel.org,
linux-mips@linux-mips.org
Subject: Re: [PATCH] cpumask fallout: Initialize irq_default_affinity earlier.
Date: Thu, 08 Jan 2009 13:25:47 -0800 [thread overview]
Message-ID: <49666F5B.2090605@sgi.com> (raw)
In-Reply-To: <496666CE.3050205@caviumnetworks.com>
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
prev parent reply other threads:[~2009-01-08 21:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-08 20:21 [PATCH] cpumask fallout: Initialize irq_default_affinity earlier David Daney
2009-01-08 20:33 ` Linus Torvalds
2009-01-08 20:49 ` David Daney
2009-01-08 20:56 ` Linus Torvalds
2009-01-10 5:11 ` Rusty Russell
2009-01-08 21:25 ` Mike Travis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49666F5B.2090605@sgi.com \
--to=travis@sgi.com \
--cc=ddaney@caviumnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=rusty@rustcorp.com.au \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox