diff options
author | Richard Braun <rbraun@sceen.net> | 2018-02-20 20:42:29 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-02-20 20:42:29 +0100 |
commit | f923f7a361c8a0b4d081dc04672a59ccd8828704 (patch) | |
tree | f6c63819a43d676c334204735fa88252ffb68cee | |
parent | e63c4bcecf5966661862e4fa29281b3c00319c78 (diff) |
kern/thread: remove sref registration calls
The upcoming RCU implementation requires scalable reference counters to
be usable in interrupt context, and in particular, in the periodic tick
handler, when an idle thread may be running, and the local processor is
not registered.
-rw-r--r-- | kern/thread.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/kern/thread.c b/kern/thread.c index 20378ff..63af1bd 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -2108,7 +2108,6 @@ static void thread_idle(void *arg) { struct thread *self; - int error; (void)arg; @@ -2116,13 +2115,6 @@ thread_idle(void *arg) for (;;) { thread_preempt_disable(); - error = sref_unregister(); - - if (error) { - assert(error == ERROR_BUSY); - goto error_sref; - } - llsync_unregister(); for (;;) { @@ -2137,9 +2129,6 @@ thread_idle(void *arg) } llsync_register(); - sref_register(); - -error_sref: thread_preempt_enable(); } } |