I finally reproduced this using 2.6.25.1 (2.6.25-mm1 was no good) with
your config.

The patch below fixes it for me.  You'll notice a certain similarity
between this and a previous patch that you posted.  It's not clear to
me why yours didn't work.

                    Jeff

-- 
Work email - jdike at linux dot intel dot com

Index: 2.6/stable/arch/um/os-Linux/time.c
===================================================================
--- 2.6.orig/stable/arch/um/os-Linux/time.c     2008-05-14 14:55:56.000000000 
-0400
+++ 2.6/stable/arch/um/os-Linux/time.c  2008-05-14 15:30:48.000000000 -0400
@@ -66,12 +66,21 @@ long long disable_timer(void)
        return timeval_to_ns(&time.it_value);
 }
 
+static long long last_time;
+
 long long os_nsecs(void)
 {
        struct timeval tv;
+       long long ret;
 
        gettimeofday(&tv, NULL);
-       return timeval_to_ns(&tv);
+       ret = timeval_to_ns(&tv);
+
+       if((last_time != 0) && (last_time > ret))
+               ret = last_time;
+
+       last_time = ret;
+       return ret;
 }
 
 #ifdef UML_CONFIG_NO_HZ

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to