diff options
author | jmallett <jmallett@FreeBSD.org> | 2011-02-12 02:08:24 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2011-02-12 02:08:24 +0000 |
commit | 43ee1f2df30c3b8c4c3bbf22918455c6e0032535 (patch) | |
tree | 7cb42a62b2992d416a5721dfcfe9f64c3c4a94d6 /sys/mips/cavium | |
parent | f74b693166215a41e29f1932c91ef7c921e662a7 (diff) | |
download | FreeBSD-src-43ee1f2df30c3b8c4c3bbf22918455c6e0032535.zip FreeBSD-src-43ee1f2df30c3b8c4c3bbf22918455c6e0032535.tar.gz |
Allow the platform code to return a bitmask of running cores rather than just
a number of cores, this allows for a sparse set of CPUs. Implement support
for sparse core masks on Octeon.
XXX jeff@ suggests that all_cpus should include cores that are offline or
running other applications/OSes, so the platform API should be further
extended to allow us to set all_cpus to include all cores that are
physically-present as opposed to only those that are running FreeBSD.
Submitted by: Bhanu Prakash (with modifications)
Reviewed by: jchandra
Glanced at by: kib, jeff, jhb
Diffstat (limited to 'sys/mips/cavium')
-rw-r--r-- | sys/mips/cavium/octeon_mp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/mips/cavium/octeon_mp.c b/sys/mips/cavium/octeon_mp.c index 09d65de..78eafa6 100644 --- a/sys/mips/cavium/octeon_mp.c +++ b/sys/mips/cavium/octeon_mp.c @@ -102,10 +102,10 @@ platform_init_ap(int cpuid) mips_wbflush(); } -int -platform_num_processors(void) +cpumask_t +platform_cpu_mask(void) { - return (bitcount32(octeon_bootinfo->core_mask)); + return (octeon_bootinfo->core_mask); } struct cpu_group * |