Have tcp_isn_tick() fire 100 times a second, rather than HZ times a

second; since the default hz has changed to 1000 times a second,
this resulted in unecessary work being performed.

MFC after:		2 weeks
Discussed with:		phk, cperciva
General head nod:	silby
This commit is contained in:
Robert Watson 2005-01-30 23:30:28 +00:00
parent e6fff3fa54
commit 54082796aa
2 changed files with 2 additions and 2 deletions

View File

@ -1363,7 +1363,7 @@ tcp_isn_tick(xtp)
isn_offset = projected_offset;
isn_offset_old = isn_offset;
callout_reset(&isn_callout, 1, tcp_isn_tick, NULL);
callout_reset(&isn_callout, hz/100, tcp_isn_tick, NULL);
INP_INFO_WUNLOCK(&tcbinfo);
}

View File

@ -1363,7 +1363,7 @@ tcp_isn_tick(xtp)
isn_offset = projected_offset;
isn_offset_old = isn_offset;
callout_reset(&isn_callout, 1, tcp_isn_tick, NULL);
callout_reset(&isn_callout, hz/100, tcp_isn_tick, NULL);
INP_INFO_WUNLOCK(&tcbinfo);
}