diff options
author | jeff <jeff@FreeBSD.org> | 2002-03-05 10:01:46 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-03-05 10:01:46 +0000 |
commit | f25b3f9f5bc7c1b9dfb66f6fed8206e79613db7f (patch) | |
tree | ba2760ce8aec950f5fe901410d365bfcedef9dfd /sys/sys/smp.h | |
parent | 9efc11065b8c97c4d238abf06c92522301113cf3 (diff) | |
download | FreeBSD-src-f25b3f9f5bc7c1b9dfb66f6fed8206e79613db7f.zip FreeBSD-src-f25b3f9f5bc7c1b9dfb66f6fed8206e79613db7f.tar.gz |
Add a new variable mp_maxid. This is used so that per cpu datastructures may
be allocated as arrays indexed by the cpu id. Previously the only reliable
way to know the max cpu id was through MAXCPU. mp_ncpus isn't useful here
because cpu ids may be sparsely mapped, although x86 and alpha do not do this.
Also, call cpu_mp_probe much earlier so the max cpu id is known before the VM
starts up. This is intended to help support per cpu queues for the new
allocator, but may be useful elsewhere.
Reviewed by: jake
Approved by: jake
Diffstat (limited to 'sys/sys/smp.h')
-rw-r--r-- | sys/sys/smp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/smp.h b/sys/sys/smp.h index 3bb7a80..e829719 100644 --- a/sys/sys/smp.h +++ b/sys/sys/smp.h @@ -26,6 +26,7 @@ extern int smp_cpus; extern u_int all_cpus; extern volatile u_int started_cpus; extern volatile u_int stopped_cpus; +extern u_int mp_maxid; /* * Macro allowing us to determine whether a CPU is absent at any given |