All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 3/3] UML - Fix usec to nsec conversion
@ 2007-09-13 20:41 ` Jeff Dike
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2007-09-13 20:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML, uml-devel

microseconds need to be multiplied by a thousand, not a billion, to get
nanoseconds.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
 arch/um/os-Linux/time.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.22/arch/um/os-Linux/time.c
===================================================================
--- linux-2.6.22.orig/arch/um/os-Linux/time.c	2007-09-12 16:45:28.000000000 -0400
+++ linux-2.6.22/arch/um/os-Linux/time.c	2007-09-13 11:37:05.000000000 -0400
@@ -48,7 +48,7 @@ static inline unsigned long long tv_to_n
 	 */
 
 	return ((unsigned long long) tv->tv_sec) * UM_NSEC_PER_SEC +
-		tv->tv_usec * UM_NSEC_PER_SEC;
+		tv->tv_usec * UM_NSEC_PER_USEC;
 }
 
 unsigned long long disable_timer(void)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-13 20:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-13 20:41 [uml-devel] [PATCH 3/3] UML - Fix usec to nsec conversion Jeff Dike
2007-09-13 20:41 ` Jeff Dike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.