diff options
author | Jeff Dike | 2007-11-29 01:21:51 +0100 |
---|---|---|
committer | Linus Torvalds | 2007-11-29 18:24:53 +0100 |
commit | 364e3a3d8a26aae058cf1c257457ad1f6b1cfe4c (patch) | |
tree | 1e5c04d671c5fcc8c2e25c37b08378e95a7e4e11 /arch/um/os-Linux/tls.c | |
parent | isdn: bootup crash fix (diff) | |
download | kernel-qcow2-linux-364e3a3d8a26aae058cf1c257457ad1f6b1cfe4c.tar.gz kernel-qcow2-linux-364e3a3d8a26aae058cf1c257457ad1f6b1cfe4c.tar.xz kernel-qcow2-linux-364e3a3d8a26aae058cf1c257457ad1f6b1cfe4c.zip |
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>
Diffstat (limited to 'arch/um/os-Linux/tls.c')
0 files changed, 0 insertions, 0 deletions