summaryrefslogtreecommitdiffstats
path: root/sys/mips/rmi/xlr_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/rmi/xlr_machdep.c')
-rw-r--r--sys/mips/rmi/xlr_machdep.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/mips/rmi/xlr_machdep.c b/sys/mips/rmi/xlr_machdep.c
index 4a1734a..836c605 100644
--- a/sys/mips/rmi/xlr_machdep.c
+++ b/sys/mips/rmi/xlr_machdep.c
@@ -614,11 +614,15 @@ platform_processor_id(void)
return (xlr_hwtid_to_cpuid[xlr_cpu_id()]);
}
-cpumask_t
-platform_cpu_mask(void)
+void
+platform_cpu_mask(cpuset_t *mask)
{
+ int i, s;
- return (~0U >> (32 - (xlr_ncores * xlr_threads_per_core)));
+ CPU_ZERO(mask);
+ s = xlr_ncores * xlr_threads_per_core;
+ for (i = 0; i < s; i++)
+ CPU_SET(i, mask);
}
struct cpu_group *
OpenPOWER on IntegriCloud