summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kern/thread.c b/kern/thread.c
index d592b72e..71943c04 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -105,7 +105,6 @@
#include <kern/shell.h>
#include <kern/sleepq.h>
#include <kern/spinlock.h>
-#include <kern/sref.h>
#include <kern/syscnt.h>
#include <kern/task.h>
#include <kern/thread.h>
@@ -2725,8 +2724,6 @@ thread_run_scheduler(void)
assert(thread == runq->current);
assert(thread->preempt_level == (THREAD_SUSPEND_PREEMPT_LEVEL - 1));
- sref_register();
-
spinlock_lock(&runq->lock);
thread = thread_runq_get_next(thread_runq_local());
spinlock_transfer_owner(&runq->lock, thread);