Re: [RFC] RCU and CONFIG_PREEMPT_RT progress, part 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 13, 2005 at 03:06:38PM -0400, Steven Rostedt wrote:
> > 3.	Since SPIN_LOCK_UNLOCKED now takes the lock itself as an
> > 	argument, what is the best way to initialize per-CPU
> > 	locks?  An explicit initialization function, or is there
> > 	some way that I am missing to make an initializer?
> 
> Ouch, I just notice that (been using an older version for some time). 
> 
> Ingo, is this to force the initialization of the lists instead of at
> runtime?

ANSI C99 is missing a concept of "self" during auto-intialization. The
explicit passing of the lvalue is needed so that it can be propagated
downward to other macros in the initialization structure. list_head
initialization is one of those things if I remember correctly.

bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux