* [PATCH 4/5] UML - Fix sleep length bug
@ 2006-09-26 17:53 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2006-09-26 17:53 UTC (permalink / raw)
To: akpm; +Cc: user-mode-linux-devel, linux-kernel
um_timer shouldn't add local_offset to the host time since get_time already
did it. This threw off sleep when a settimeofday or equivalent had happened.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: linux-2.6.18-mm/arch/um/kernel/time.c
===================================================================
--- linux-2.6.18-mm.orig/arch/um/kernel/time.c 2006-09-12 10:43:38.000000000 -0400
+++ linux-2.6.18-mm/arch/um/kernel/time.c 2006-09-22 10:15:45.000000000 -0400
@@ -95,7 +95,7 @@ irqreturn_t um_timer(int irq, void *dev,
do_timer(1);
- nsecs = get_time() + local_offset;
+ nsecs = get_time();
xtime.tv_sec = nsecs / NSEC_PER_SEC;
xtime.tv_nsec = nsecs - xtime.tv_sec * NSEC_PER_SEC;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-26 17:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26 17:53 [PATCH 4/5] UML - Fix sleep length bug Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®