John: Ahh.. thanks for the information .. I did not know that.
I will change it to use it.. Before it was using the define.. which as Julian said a while ago was a bad idea. R On Feb 3, 2011, at 7:45 AM, John Baldwin wrote: > 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 > ------------------------------ Randall Stewart 803-317-4952 (cell) _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"