mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] UML - Fix wall_to_monotonic initialization
@ 2006-06-13  3:14 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2006-06-13  3:14 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, user-mode-linux-devel

This is 2.6.17 material.

Change a variable from unsigned to signed in order to get sign-extension
when the thing is negated.  Without this, uptime is horribly confused.

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

Index: linux-2.6.16/arch/um/kernel/time_kern.c
===================================================================
--- linux-2.6.16.orig/arch/um/kernel/time_kern.c	2006-06-12 22:57:34.000000000 -0400
+++ linux-2.6.16/arch/um/kernel/time_kern.c	2006-06-12 23:01:48.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,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-13  3:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13  3:14 [PATCH] UML - Fix wall_to_monotonic initialization 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®