diff options
author | Richard Braun <rbraun@sceen.net> | 2018-02-20 20:45:13 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-02-20 20:45:13 +0100 |
commit | 22dff6b7a6839e77d713d671cb2038e56b64ac16 (patch) | |
tree | 5863ed3d1846228c0434ae9cf9f9d03ede2a953a /kern/thread_i.h | |
parent | f923f7a361c8a0b4d081dc04672a59ccd8828704 (diff) |
kern/rcu: new module
This module implements preemptible RCU.
Diffstat (limited to 'kern/thread_i.h')
-rw-r--r-- | kern/thread_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/thread_i.h b/kern/thread_i.h index 96ce100a..979d4b0f 100644 --- a/kern/thread_i.h +++ b/kern/thread_i.h @@ -24,6 +24,7 @@ #include <kern/atomic.h> #include <kern/cpumap.h> #include <kern/list_types.h> +#include <kern/rcu_types.h> #include <kern/spinlock_types.h> #include <kern/turnstile_types.h> #include <machine/cpu.h> @@ -137,6 +138,8 @@ struct thread { /* Read-side critical section level, not in any if 0 */ unsigned short llsync_level; /* (-) */ + struct rcu_reader rcu_reader; /* (-) */ + /* Processors on which this thread is allowed to run */ struct cpumap cpumap; /* (r) */ |