Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2001 10:40:30 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Bosko Milekic <bmilekic@technokratis.com>
Cc:        "Alexander N. Kabaev" <ak03@gte.com>, freebsd-current@FreeBSD.org, Alfred Perlstein <bright@sneakerz.org>
Subject:   Re: [HEADS-UP]: Mbuf allocator changes
Message-ID:  <XFMail.010622104030.jhb@FreeBSD.org>
In-Reply-To: <20010622133221.A2616@technokratis.com>

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

On 22-Jun-01 Bosko Milekic wrote:
> 
> On Fri, Jun 22, 2001 at 10:35:32AM -0700, John Baldwin wrote:
>> 
>> On 22-Jun-01 Alfred Perlstein wrote:
>> > * Alexander N. Kabaev <ak03@gte.com> [010622 10:46] wrote:
>> >> UP kernel can not be compiled in -CURRENT after your changes because
>> >> kern/subr_mbuf.c references mp_ncpus variable, which is defined only in
>> >> SMP
>> >> case. Should this variable be moved out of #ifdef SMP?
>> > 
>> > Yes, I asked for this months ago, I thought it was already done.
>> 
>> mp_npcus is not initialized, etc. in the UP case.  I suppose it could be
>> statically initialized to 1 and moved, but in that case it needs renaming,
>> as
>> mp_ncpus implies SMP (mp_ prefix).  If you want to make it ncpus and move it
>> to
>> sys/systm.h and stick it somewhere MI initialized to 1 that is fine.  Then
>> hw.ncpus can reference that (well, it's called hw.ncpu right now, perhaps it
>> should be renamed to match the variable *shrug*) and kern.smp.cpus can die
>> as
>> it won't be needed any longer.
> 
>       Note that we already have a (machdep, I think) sysctl exported ncpu
> variable.

We already have a hw.ncpu.  machdep.* should not be used by anything that is
supposed to be MI.  Offline it seems you missed part of the point of my post
though. :)

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010622104030.jhb>