From: Jeff Dike 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 --- arch/um/kernel/time_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/um/kernel/time_kern.c~uml-fix-wall_to_monotonic-initialization arch/um/kernel/time_kern.c --- devel/arch/um/kernel/time_kern.c~uml-fix-wall_to_monotonic-initialization 2006-06-13 04:39:15.000000000 -0700 +++ devel-akpm/arch/um/kernel/time_kern.c 2006-06-13 04:39:15.000000000 -0700 @@ -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, _