aboutsummaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-04-30 12:21:57 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-04-30 12:21:57 -0700
commitda6d596aae0ebd3d4f6042ae361812242981a46e (patch)
tree25594131e17a65fa61738453827c837bf67b06d6 /core/include
parentc69a11a0e4e232965845b8fa3e059f10e6715ef8 (diff)
downloadsyslinux-da6d596aae0ebd3d4f6042ae361812242981a46e.tar.gz
syslinux-da6d596aae0ebd3d4f6042ae361812242981a46e.tar.xz
syslinux-da6d596aae0ebd3d4f6042ae361812242981a46e.zip
thread: simplify the scheduler
need_schedule was no longer used by anything else, and schedule_lock only verified if we were being called from inside sched_hook_func(). Make the localness of this data explicit. While we're at it, call kaboom if we ever find ourselves without a runnable thread (which should not be possible, as the idle thread is not allowed to block.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include')
-rw-r--r--core/include/thread.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/include/thread.h b/core/include/thread.h
index 44084ff3..5852df21 100644
--- a/core/include/thread.h
+++ b/core/include/thread.h
@@ -48,8 +48,6 @@ struct thread {
int prio;
};
-extern int __schedule_lock;
-extern bool __need_schedule;
extern void (*sched_hook_func)(void);
void __thread_process_timeouts(void);