original_kernel/arch/um/os-Linux
Jeff Dike 364e3a3d8a uml: fix !NO_HZ busy-loop
With NO_HZ disabled, the UML idle loop effectively becomes a busy loop, as
it will sleep for no time.

The cause was forgetting to restart the tick after waking up from sleep.
It was disabled before sleeping, and the remaining time used as the
interval to sleep.  So, the tick needs to be restarted when nanosleep
finishes.

This is done by introducing after_sleep_interval, which is empty in the
NO_HZ case, but which sets the tick starting in the !NO_HZ case.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-29 09:24:53 -08:00
..
drivers
include
skas
sys-i386
sys-x86_64
Makefile
aio.c
elf_aux.c
execvp.c
file.c
helper.c
irq.c
main.c
mem.c
process.c
registers.c
sigio.c
signal.c
start_up.c
time.c
tls.c
trap.c
tty.c
tty_log.c
uaccess.c
umid.c
user_syms.c
util.c