From: Jeff Dike Date: Thu, 22 Jun 2006 21:47:09 +0000 (-0700) Subject: [PATCH] UML: fix wall_to_monotonic initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f98a44b9d09580036da7e7f8b33e66f411cf374;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 86f51d04c98d..87cdbc560d36 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,