]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sysctl_msec_to_ticks is used with both virtualized and
authorbz <bz@FreeBSD.org>
Tue, 21 Jul 2009 21:58:55 +0000 (21:58 +0000)
committerbz <bz@FreeBSD.org>
Tue, 21 Jul 2009 21:58:55 +0000 (21:58 +0000)
commit1f4b104d4db1667a601af3c0725a15f5e503203e
tree9c7c5b17e1d92a3118a038d42dac35b24c53b549
parent68cbb6a7463b70cec8d8a0cd9948339a98406099
sysctl_msec_to_ticks is used with both virtualized and
non-vrtiualized sysctls so we cannot used one common function.

Add a macro to convert the arg1 in the virtualized case to
vnet.h to not expose the maths to all over the code.

Add a wrapper for the single virtualized call, properly handling
arg1 and call the default implementation from there.

Convert the two over places to use the new macro.

Reviewed by: rwatson
Approved by: re (kib)
sys/kern/kern_sysctl.c
sys/net/vnet.h
sys/netinet/tcp_subr.c
sys/netinet6/in6_proto.c