Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2004 10:48:18 -0700
From:      Julian Elischer <julian@elischer.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/i386 pmap.c src/sys/kern sched_4bsd.c sched_ule.c src/sys/sys proc.h sched.h
Message-ID:  <4145DD62.8010203@elischer.org>
In-Reply-To: <200409131135.48194.jhb@FreeBSD.org>
References:  <200409111007.i8BA7MeA090701@repoman.freebsd.org> <200409131135.48194.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help


John Baldwin wrote:

>On Saturday 11 September 2004 06:07 am, Scott Long wrote:
>
>>scottl      2004-09-11 10:07:22 UTC
>>
>>  FreeBSD src repository
>>
>>  Modified files:
>>    sys/i386/i386        pmap.c
>>    sys/kern             sched_4bsd.c sched_ule.c
>>    sys/sys              proc.h sched.h
>>  Log:
>>  Revert the previous round of changes to td_pinned.  The scheduler isn't
>>  fully initialed when the pmap layer tries to call sched_pini() early in
>>the boot and results in an quick panic.  Use ke_pinned instead as was
>>

              td_pinned

>>
>>originally done with Tor's patch.
>>
>>  Approved by: julian
>>
>
>Thanks, I think td_pinned belongs in struct thread just as td_critnest.  Not 
>all parts of the scheduler purely live in sched_foo.c.  Arguably things sleep 
>queues are also part of the scheduler since they deal with queues of threads 
>and manipulating thread state machines, so I think that while some things 
>should be private to sched_foo, not everything has to be completely private.
>
Actually I think that the pinned stuff should move to either proc.h or 
to smp.h
sleep queues for example are not private, and do have some connection as 
you said to the scheduler,
but are not in sched.h. It is really part of the world in which a 
scheduler needs to exist rather
than part of the sceduler interface.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4145DD62.8010203>