diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-09-10 17:50:26 -0700 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2011-04-09 18:27:06 -0700 |
commit | cd8b37053cc36014379fefdecf1d409bc7dc5b45 (patch) | |
tree | 188da2ec5d3545809f46981949851a92b818275b /core/include | |
parent | 853e2e8034316a07beedff69adcdb0d04c4cd113 (diff) | |
download | syslinux-cd8b37053cc36014379fefdecf1d409bc7dc5b45.tar.gz syslinux-cd8b37053cc36014379fefdecf1d409bc7dc5b45.tar.xz syslinux-cd8b37053cc36014379fefdecf1d409bc7dc5b45.zip |
thread: add support for locking the scheduler
Add support for locking the scheduler; this is needed for the pm
return hook to operate properly.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/core.h | 3 | ||||
-rw-r--r-- | core/include/thread.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/include/core.h b/core/include/core.h index a593c268..62a61f6e 100644 --- a/core/include/core.h +++ b/core/include/core.h @@ -18,6 +18,9 @@ extern char ConfigFile[]; /* diskstart.inc isolinux.asm*/ extern void getlinsec(void); +/* pm.inc */ +extern void (*core_pm_hook)(void); + /* getc.inc */ extern void core_open(void); diff --git a/core/include/thread.h b/core/include/thread.h index 55a3ed7c..7d346760 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -28,6 +28,9 @@ struct thread { int prio; }; +extern int __schedule_lock; +extern bool __need_schedule; +void __thread_process_timeouts(void); void __schedule(void); void __switch_to(struct thread *); void thread_yield(void); |