PERFORCE change 167856 for review

Peter Wemm peter at FreeBSD.org
Wed Aug 26 20:08:08 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=167856

Change 167856 by peter at peter_daintree on 2009/08/26 20:07:19

	Attempt to provoke ticks wraparound issues earlier.  It'll
	catch some of the serious ones - like the scheduler clock
	stop after 24 days.  

Affected files ...

.. //depot/projects/hammer/sys/kern/kern_clock.c#49 edit

Differences ...

==== //depot/projects/hammer/sys/kern/kern_clock.c#49 (text+ko) ====

@@ -250,6 +250,11 @@
 #ifdef SW_WATCHDOG
 	EVENTHANDLER_REGISTER(watchdog_list, watchdog_config, NULL, 0);
 #endif
+	/*
+	 * Arrange for ticks to go negative just 5 minutes after boot
+	 * to help catch sign problems sooner.
+	 */
+	ticks = INT_MAX - (hz * 5 * 60);
 }
 
 /*


More information about the p4-projects mailing list