From: Jeff Dike Date: Thu, 29 Nov 2007 00:21:51 +0000 (-0800) Subject: uml: fix !NO_HZ busy-loop X-Git-Tag: v2.6.24-rc4~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=364e3a3d8a26aae058cf1c257457ad1f6b1cfe4c;p=pandora-kernel.git 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 Cc: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed