summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-16 01:19:39 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-16 01:19:39 +0100
commit884e2de718cc47bb9e5200d866f41c88e74ba3c0 (patch)
tree2ce6135ec2c48872a34dbf133a3f16ea8a6159ed /kern
parent1aa9bbc070f95949419818682d4fcd628b2c3cf0 (diff)
kern/percpu: improve initop descriptions and fix dependencies
Diffstat (limited to 'kern')
-rw-r--r--kern/llsync.c1
-rw-r--r--kern/percpu.h5
-rw-r--r--kern/xcall.c1
3 files changed, 6 insertions, 1 deletions
diff --git a/kern/llsync.c b/kern/llsync.c
index 36233fac..5fcbd736 100644
--- a/kern/llsync.c
+++ b/kern/llsync.c
@@ -108,6 +108,7 @@ llsync_setup(void)
}
INIT_OP_DEFINE(llsync_setup,
+ INIT_OP_DEP(cpu_mp_probe, true),
INIT_OP_DEP(log_setup, true),
INIT_OP_DEP(mutex_setup, true),
INIT_OP_DEP(spinlock_setup, true),
diff --git a/kern/percpu.h b/kern/percpu.h
index b196acbe..5c5748a7 100644
--- a/kern/percpu.h
+++ b/kern/percpu.h
@@ -106,13 +106,16 @@ int percpu_add(unsigned int cpu);
/*
* This init operation provides :
- * - percpu section is registered as the BSP percpu area
+ * - access to percpu variables on processor 0
*/
INIT_OP_DECLARE(percpu_bootstrap);
/*
* This init operation provides :
* - new percpu areas can be created
+ *
+ * The dependency that provides access to percpu variables on all processors
+ * is cpu_mp_probe.
*/
INIT_OP_DECLARE(percpu_setup);
diff --git a/kern/xcall.c b/kern/xcall.c
index 215c1c78..fb60bacc 100644
--- a/kern/xcall.c
+++ b/kern/xcall.c
@@ -129,6 +129,7 @@ xcall_setup(void)
}
INIT_OP_DEFINE(xcall_setup,
+ INIT_OP_DEP(cpu_mp_probe, true),
INIT_OP_DEP(thread_bootstrap, true),
INIT_OP_DEP(spinlock_setup, true));