When entering the softclock function for the first time,ticks is 2147423648,cc_softticks is 0.

Approximately 30 seconds later, ticks and cc_softticks become equal, allowing the while loop to be exited.
This commit is contained in:
wenchengji 2023-03-24 09:56:31 +00:00
parent 0f015b3f5d
commit e12daec8ec
1 changed files with 2 additions and 1 deletions

View File

@ -185,8 +185,9 @@ init_param1(void)
* Arrange for ticks to wrap 10 minutes after boot to help catch
* sign problems sooner.
*/
#ifndef FSTACK
ticks = INT_MAX - (hz * 10 * 60);
#endif
vn_lock_pair_pause_max = hz / 100;
if (vn_lock_pair_pause_max == 0)
vn_lock_pair_pause_max = 1;