All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [-stable PATCH] UML - fix uptime
@ 2006-06-20 22:25 ` Jeff Dike
  0 siblings, 0 replies; 8+ messages in thread
From: Jeff Dike @ 2006-06-20 22:25 UTC (permalink / raw)
  To: stable; +Cc: linux-kernel, user-mode-linux-devel

Please consider this for 2.6.17-stable.  It made -mm briefly, but missed
2.6.17.  It fixes the value of uptime, which was broken by a patch late in
2.6.17-rc.

The use of unsigned instead of unsigned here broke the calculations on
negative numbers that are involved in calculating wall_to_monotonic.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.17-mm/arch/um/kernel/time_kern.c
===================================================================
--- linux-2.6.17-mm.orig/arch/um/kernel/time_kern.c	2006-06-11 16:35:49.000000000 -0400
+++ linux-2.6.17-mm/arch/um/kernel/time_kern.c	2006-06-12 17:44:54.000000000 -0400
@@ -87,7 +87,7 @@ void timer_irq(union uml_pt_regs *regs)
 
 void time_init_kern(void)
 {
-	unsigned long long nsecs;
+	long long nsecs;
 
 	nsecs = os_nsecs();
 	set_normalized_timespec(&wall_to_monotonic, -nsecs / BILLION,



_______________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2006-06-21  1:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-20 22:25 [uml-devel] [-stable PATCH] UML - fix uptime Jeff Dike
2006-06-20 22:25 ` Jeff Dike
2006-06-20 22:55 ` [uml-devel] [stable] " Chris Wright
2006-06-20 22:55   ` Chris Wright
2006-06-21  0:49   ` [uml-devel] " Jeff Dike
2006-06-21  0:49     ` Jeff Dike
2006-06-21  1:43     ` [uml-devel] " Chris Wright
2006-06-21  1:43       ` Chris Wright

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.