diff options
author | 2013-11-09 06:38:42 +0000 | |
---|---|---|
committer | 2013-11-09 06:38:42 +0000 | |
commit | 282152963c9ec77c82e1a5587bd95bfa80878a18 (patch) | |
tree | f028d37c29650412f6dbee83b1d5fa8706deb716 /sys/kern/subr_hibernate.c | |
parent | recognise Realtek ALC221 (diff) | |
download | wireguard-openbsd-282152963c9ec77c82e1a5587bd95bfa80878a18.tar.xz wireguard-openbsd-282152963c9ec77c82e1a5587bd95bfa80878a18.zip |
ticks is compared against mcl_grown to see if time has elapsed since
the rx ring was last allowed to grow and then assigned to it. it
is erroneous to do this because mcl_grown is a u_int and ticks is an
int.
this makes mcl_grown an int, and follows the idiom in kern_timeout.c
of going "thing - ticks < diff", which better copes with ticks
wrapping around and being used to calculate relative intervals.
ok pirofti@ guenther@
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions