# 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-06-29 08:42:05.000000000 -0400 +++ um/arch/um/kernel/time_kern.c 2004-07-30 12:28:06.000000000 -0400 @@ -61,6 +61,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