Provide counter_ratecheck(), a MP-friendly substitution to ppsratecheck().
authorglebius <glebius@FreeBSD.org>
Fri, 9 Dec 2016 17:58:34 +0000 (17:58 +0000)
committerglebius <glebius@FreeBSD.org>
Fri, 9 Dec 2016 17:58:34 +0000 (17:58 +0000)
commit592e0af9a0ad2e9a4484bb1b1508c747b8b546a5
treed7250c2acb3b4158b1f49c6accb98c0e59e1b559
parent07971cc85639bc979ef6dc6872b5c308be5e35f9
Provide counter_ratecheck(), a MP-friendly substitution to ppsratecheck().
When rated event happens at a very quick rate, the ppsratecheck() is not
only racy, but also becomes a performance bottleneck.

Together with: rrs, jtl
share/man/man9/counter.9
sys/kern/subr_counter.c
sys/sys/counter.h