summaryrefslogtreecommitdiff
path: root/kern/cpumap.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-05-06 20:47:44 +0200
committerRichard Braun <rbraun@sceen.net>2014-05-06 20:47:44 +0200
commite447ec951660f8a55597758be7f6747ee772fe86 (patch)
tree5a070537b26fddaccabfd3179d5632c198136159 /kern/cpumap.h
parent6ef4f1e3a6c626e5bc2a49efb65e60d170445fd2 (diff)
kern/cpumap: initialize cpumap_active_cpus
The cpumap_all function may be called before the cpumap module is initialized. Make the cpumap_active_cpus cpumap initialized in the data section, representing the BSP only.
Diffstat (limited to 'kern/cpumap.h')
-rw-r--r--kern/cpumap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/cpumap.h b/kern/cpumap.h
index 0e57c30..68a040c 100644
--- a/kern/cpumap.h
+++ b/kern/cpumap.h
@@ -141,6 +141,9 @@ void cpumap_setup(void);
/*
* Return a cpumap representing all active processors.
+ *
+ * Until the cpumap module is initialized, the cpumap returned by this
+ * function describes the BSP only.
*/
const struct cpumap * cpumap_all(void);