Skip to content

Commit e12daec

Browse files
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.
1 parent 0f015b3 commit e12daec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

freebsd/kern/subr_param.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ init_param1(void)
185185
* Arrange for ticks to wrap 10 minutes after boot to help catch
186186
* sign problems sooner.
187187
*/
188+
#ifndef FSTACK
188189
ticks = INT_MAX - (hz * 10 * 60);
189-
190+
#endif
190191
vn_lock_pair_pause_max = hz / 100;
191192
if (vn_lock_pair_pause_max == 0)
192193
vn_lock_pair_pause_max = 1;

0 commit comments

Comments
 (0)