Skip to contentSkip to conversation

UML - Fix wall_to_monotonic initialization

PATCH New Jeff Dike 1 participant 1 message Jun 13, 2006 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 UML - Fix wall_to_monotonic initialization

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.

arch/um/kernel/time_kern.c +1 -1
Index: linux-2.6.16/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,

_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel