Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Feb 2011 07:45:34 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Randall Stewart <rrs@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r218219 - head/sys/netinet
Message-ID:  <201102030745.34617.jhb@freebsd.org>
In-Reply-To: <201102031152.p13BqM8u044432@svn.freebsd.org>
References:  <201102031152.p13BqM8u044432@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, February 03, 2011 6:52:22 am Randall Stewart wrote:
> Author: rrs
> Date: Thu Feb  3 11:52:22 2011
> New Revision: 218219
> URL: http://svn.freebsd.org/changeset/base/218219
> 
> Log:
>   Fix the per CPU stats so that:
>   1) They don't use the giant "MAX_CPU" define and instead
>      are allocated dynamically based on mp_ncpus

You probably want to use mp_maxid instead.  CPU IDs are not guaranteed to be 
contiguous (though they currently are).  Instead, the only guarantee are that 
there are mp_ncpus CPUs numbered 0 ... mp_maxid.  There may be gaps in that 
range (and there have been in the past).

-- 
John Baldwin



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