summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-11-09 06:38:42 +0000
committerdlg <dlg@openbsd.org>2013-11-09 06:38:42 +0000
commit282152963c9ec77c82e1a5587bd95bfa80878a18 (patch)
treef028d37c29650412f6dbee83b1d5fa8706deb716 /sys/kern/subr_hibernate.c
parentrecognise Realtek ALC221 (diff)
downloadwireguard-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