mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bill Huey (hui) <bhuey@lnxw.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: paulmck@us.ibm.com, linux-kernel@vger.kernel.org, mingo@elte.hu,
	dipankar@in.ibm.com, shemminger@osdl.org, rusty@au1.ibm.com
Subject: Re: [RFC] RCU and CONFIG_PREEMPT_RT progress, part 3
Date: Wed, 13 Jul 2005 13:30:58 -0700	[thread overview]
Message-ID: <20050713203058.GA27292@nietzsche.lynx.com> (raw)
In-Reply-To: <1121281598.25810.14.camel@localhost.localdomain>

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


  parent reply	other threads:[~2005-07-13 20:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13 18:48 Paul E. McKenney
2005-07-13 19:06 ` Steven Rostedt
2005-07-13 20:18   ` Paul E. McKenney
2005-07-13 20:30   ` Bill Huey [this message]
2005-07-13 20:35 ` Bill Huey
2005-07-13 22:04   ` Paul E. McKenney

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=20050713203058.GA27292@nietzsche.lynx.com \
    --to=bhuey@lnxw.com \
    --cc=dipankar@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=paulmck@us.ibm.com \
    --cc=rostedt@goodmis.org \
    --cc=rusty@au1.ibm.com \
    --cc=shemminger@osdl.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

all inboxes | Powered by JetHome®