lkml.org 
[lkml]   [2009]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cpumask fallout: Initialize irq_default_affinity earlier.
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


\
 
 \ /
  Last update: 2009-01-08 21:53    [W:0.065 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site