diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2010-03-30 16:06:39 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-03-30 16:10:13 -0700 |
commit | d6fb0861c55f062797c8706f484bd47ae0f94568 (patch) | |
tree | 058691551709427756f9d2469c1eaf47cd59917f /core/include | |
parent | b6e84b7f93c5b4a0cffd132f3c6dbf6bf58ba2b9 (diff) | |
download | syslinux-d6fb0861c55f062797c8706f484bd47ae0f94568.tar.gz |
core: move idle handling into protected mode
Do the actual idling in protected mode. This both allows PM code a
more efficient interface, but also handles bugs in HVM implementations
which don't handle HLT in real mode.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/core.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/include/core.h b/core/include/core.h index f03da813..eb7bfcdb 100644 --- a/core/include/core.h +++ b/core/include/core.h @@ -21,12 +21,14 @@ extern void getlinsec(void); /* getc.inc */ extern void core_open(void); -/* idle.inc */ -extern void (*idle_hook_func)(void); - /* hello.c */ extern void myputs(const char*); +/* idle.c */ +extern int (*idle_hook_func)(void); +extern void __idle(void); +extern void reset_idle(void); + /* mem/malloc.c, mem/free.c, mem/init.c */ extern void *malloc(size_t); extern void *lmalloc(size_t); |