linux/arch/um
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: fix build for !CONFIG_TCP 2007-11-14 18:45:43 -08:00
include uml: fix build for !CONFIG_PRINTK 2007-11-14 18:45:43 -08:00
kernel uml: remove last include of libc asm/page.h 2007-11-14 18:45:43 -08:00
os-Linux uml: fix !NO_HZ busy-loop 2007-11-29 09:24:53 -08:00
scripts uml: throw out CONFIG_MODE_TT 2007-10-16 09:43:05 -07:00
sys-i386 misc uml annotation and section fixes 2007-10-29 07:41:32 -07:00
sys-ia64
sys-ppc kbuild: enable 'make AFLAGS=...' to add additional options to AS 2007-10-15 21:59:31 +02:00
sys-x86_64 misc uml annotation and section fixes 2007-10-29 07:41:32 -07:00
Kconfig typo fixes 2007-10-20 01:34:40 +02:00
Kconfig.char uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Kconfig.debug uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Kconfig.i386 more x86 merge fallout (uml, again) 2007-10-29 07:41:32 -07:00
Kconfig.net uml: add VDE networking support 2007-10-16 09:43:05 -07:00
Kconfig.x86_64 uml: fix stub address calculations 2007-10-16 09:43:09 -07:00
Makefile UML: build fix 2007-11-29 09:24:51 -08:00
Makefile-i386 UML: fix defconfig build again 2007-11-06 13:57:03 -08:00
Makefile-ia64
Makefile-os-Linux kbuild: enable 'make CFLAGS=...' to add additional options to CC 2007-10-14 22:21:35 +02:00
Makefile-ppc
Makefile-skas
Makefile-tt
Makefile-x86_64 x86 merge fallout: uml 2007-10-29 07:41:32 -07:00
defconfig uml: fix stub address calculations 2007-10-16 09:43:09 -07:00