Subject: Re: CVS commit: [yamt-idlelwp] src/sys
To: None <rmind@NetBSD.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 03/24/2007 23:14:15
> > Log Message:
> > initialize ci->ci_schedstate.spc_mutex of APs.
> > (sched_rqinit is called before APs are attached.)
> Thanks for doing this :)
> 
> Since we do not involve idle LWPs into the scheduler, and initialization of
> idle LWP will not touch spc_mutex - why do you want to call sched_cpuattach()
> before create_idle_lwp()?

create_idle_lwp() uses newlwp(), which uses spc_mutex.

YAMAMOTO Takashi