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:
parent
e6fff3fa54
commit
54082796aa
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user