Document the requirements and nature of the logical CPU IDs. It isn't

very strict and leaves much up to the platform so that it can define a
convenient mapping.

Requested by:	mjacob
This commit is contained in:
John Baldwin 2001-10-24 22:15:38 +00:00
parent 02185af5a9
commit 882bcf5879
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85444

View file

@ -32,6 +32,16 @@
/*
* This module provides MI support for per-cpu data.
*
* Each architecture determines the mapping of logical CPU IDs to physical
* CPUs. The requirements of this mapping are as follows:
* - Logical CPU IDs must reside in the range 0 ... MAXCPU - 1.
* - The mapping is not required to be dense. That is, there may be
* gaps in the mappings.
* - The platform sets the value of MAXCPU in <machine/param.h>.
* - It is suggested, but not required, that in the non-SMP case, the
* platform define MAXCPU to be 1 and define the logical ID of the
* sole CPU as 0.
*/
#include <sys/param.h>