diff options
author | Richard Braun <rbraun@sceen.net> | 2018-01-16 01:19:39 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-01-16 01:19:39 +0100 |
commit | 884e2de718cc47bb9e5200d866f41c88e74ba3c0 (patch) | |
tree | 2ce6135ec2c48872a34dbf133a3f16ea8a6159ed | |
parent | 1aa9bbc070f95949419818682d4fcd628b2c3cf0 (diff) |
kern/percpu: improve initop descriptions and fix dependencies
-rw-r--r-- | arch/x86/machine/cpu.h | 1 | ||||
-rw-r--r-- | kern/llsync.c | 1 | ||||
-rw-r--r-- | kern/percpu.h | 5 | ||||
-rw-r--r-- | kern/xcall.c | 1 |
4 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/machine/cpu.h b/arch/x86/machine/cpu.h index c4711126..b9f8c0df 100644 --- a/arch/x86/machine/cpu.h +++ b/arch/x86/machine/cpu.h @@ -693,6 +693,7 @@ INIT_OP_DECLARE(cpu_setup); /* * This init operation provides : * - cpu_count() + * - access to percpu variables on all processors */ INIT_OP_DECLARE(cpu_mp_probe); 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)); |