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 _______________________________________________ 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"