# Protect against the host clock moving backwards. If delta goes negative, # UML will see a very large number of ticks that need delivering. If that # happens, this just sets delta to zero to minimize the damage. Index: um/arch/um/kernel/time_kern.c =================================================================== --- um.orig/arch/um/kernel/time_kern.c 2004-08-06 15:17:08.000000000 -0400 +++ um/arch/um/kernel/time_kern.c 2004-08-06 16:29:49.000000000 -0400 @@ -67,6 +67,10 @@ delta += usecs - prev_usecs; prev_usecs = usecs; + /* Protect against the host clock being set backwards */ + if(delta < 0) + delta = 0; + ticks += (delta * HZ) / MILLION; delta -= (ticks * MILLION) / HZ; #else