summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/hwfunc.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-05-13 19:56:58 +0000
committerattilio <attilio@FreeBSD.org>2011-05-13 19:56:58 +0000
commita79fdc81aa4d25507b90e10fedbc38d5ad84ba4a (patch)
treed2889bf496fba4f4f14a81f1881c272545fd637f /sys/mips/include/hwfunc.h
parentdcae8c96267648ce6ae3191f642d5ddd62d0b319 (diff)
downloadFreeBSD-src-a79fdc81aa4d25507b90e10fedbc38d5ad84ba4a.zip
FreeBSD-src-a79fdc81aa4d25507b90e10fedbc38d5ad84ba4a.tar.gz
Fix a brain-o in platform_cpu_mask() by just specifying a possible
cpuset_t to be copied, rather than return the array. I can't rely anymore on this being a simple int/long object. Reported by: art
Diffstat (limited to 'sys/mips/include/hwfunc.h')
-rw-r--r--sys/mips/include/hwfunc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/include/hwfunc.h b/sys/mips/include/hwfunc.h
index 4e6ddf5..a9e3285 100644
--- a/sys/mips/include/hwfunc.h
+++ b/sys/mips/include/hwfunc.h
@@ -93,7 +93,7 @@ extern int platform_processor_id(void);
/*
* Return the cpumask of available processors.
*/
-extern cpuset_t platform_cpu_mask(void);
+extern void platform_cpu_mask(cpuset_t *mask);
/*
* Return the topology of processors on this platform
OpenPOWER on IntegriCloud