Initialize ticks so that it wraps 10 minutes after boot to increase the
chances of finding problems related to wraparound sooner. This comes from P4 change 167856 on 2009/08/26 around when we had problems with the TCP stack with ticks after 24 days of uptime.
This commit is contained in:
parent
aba31cb691
commit
bf625afa44
@ -410,6 +410,11 @@ initclocks(dummy)
|
||||
#ifdef SW_WATCHDOG
|
||||
EVENTHANDLER_REGISTER(watchdog_list, watchdog_config, NULL, 0);
|
||||
#endif
|
||||
/*
|
||||
* Arrange for ticks to wrap 10 minutes after boot to help catch
|
||||
* sign problems sooner.
|
||||
*/
|
||||
ticks = INT_MAX - (hz * 10 * 60);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user