From: Jeff Dike Date: Thu, 22 Jun 2006 21:47:09 +0000 (-0700) Subject: [PATCH] UML: fix wall_to_monotonic initialization X-Git-Tag: v2.6.18-rc1~1081^2~244 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7f98a44b9d09580036da7e7f8b33e66f411cf374;p=linux-2.6-omap-h63xx.git [PATCH] UML: fix wall_to_monotonic initialization 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/kernel/time_kern.c b/arch/um/kernel/time_kern.c index 86f51d04c98..87cdbc560d3 100644 --- a/arch/um/kernel/time_kern.c +++ b/arch/um/kernel/time_kern.c @@ -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,