linux/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 uml: network driver MTU cleanups 2007-10-16 09:43:08 -07:00
include
skas uml: definitively kill subprocesses on panic 2007-10-16 09:43:09 -07:00
sys-i386 uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
sys-x86_64 uml: throw out CONFIG_MODE_TT 2007-10-16 09:43:05 -07:00
aio.c uml: userspace files should call libc directly 2007-10-16 09:43:06 -07:00
elf_aux.c
execvp.c
file.c uml: fix recvmsg return value checking 2007-11-14 18:45:37 -08:00
helper.c uml: userspace files should call libc directly 2007-10-16 09:43:06 -07:00
irq.c uml: eliminate SIGALRM 2007-10-16 09:43:08 -07:00
main.c uml: eliminate SIGALRM 2007-10-16 09:43:08 -07:00
Makefile uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
mem.c uml: userspace files should call libc directly 2007-10-16 09:43:06 -07:00
process.c uml: eliminate SIGALRM 2007-10-16 09:43:08 -07:00
registers.c uml: floating point signal delivery fixes 2007-10-16 09:43:07 -07:00
sigio.c
signal.c uml: eliminate SIGALRM 2007-10-16 09:43:08 -07:00
start_up.c uml: userspace files should call libc directly 2007-10-16 09:43:06 -07:00
time.c uml: fix !NO_HZ busy-loop 2007-11-29 09:24:53 -08:00
tls.c uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
trap.c uml: eliminate SIGALRM 2007-10-16 09:43:08 -07:00
tty_log.c
tty.c
uaccess.c uml: get rid of do_longjmp 2007-10-16 09:43:05 -07:00
umid.c uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
user_syms.c
util.c uml: definitively kill subprocesses on panic 2007-10-16 09:43:09 -07:00