summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-20 20:42:29 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-20 20:42:29 +0100
commitf923f7a361c8a0b4d081dc04672a59ccd8828704 (patch)
treef6c63819a43d676c334204735fa88252ffb68cee /kern/thread.c
parente63c4bcecf5966661862e4fa29281b3c00319c78 (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.
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 20378ffb..63af1bde 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();
}
}