diff options
author | Richard Braun <rbraun@sceen.net> | 2013-05-15 02:12:57 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-05-15 02:12:57 +0200 |
commit | 05eaaafa89b813e1bd5e34b4d47ec99cdc3a5911 (patch) | |
tree | 84fc50645b2a5ba4f17dfaa2a92059c350956b04 /kern/kernel.c | |
parent | b6555e76c36170e60e09125c0bcd7b997f68e4a9 (diff) |
kern/llsync: new module
This module provides lockless synchronization so that reads can safely occur
during updates, without holding a lock. It is based on passive serialization
as described in US patent 4809168, and achieves a goal similar to Linux RCU
(Read-Copy Update).
Diffstat (limited to 'kern/kernel.c')
-rw-r--r-- | kern/kernel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/kernel.c b/kern/kernel.c index 93c0c19c..1acd5308 100644 --- a/kern/kernel.c +++ b/kern/kernel.c @@ -17,6 +17,7 @@ #include <kern/init.h> #include <kern/kernel.h> +#include <kern/llsync.h> #include <kern/panic.h> #include <kern/task.h> #include <kern/thread.h> @@ -33,6 +34,7 @@ kernel_main(void) /* Initialize the kernel */ task_setup(); thread_setup(); + llsync_setup(); /* Rendezvous with APs */ cpu_mp_sync(); |