diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-02-10 19:59:46 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-02-10 19:59:46 +0000 |
commit | 49fef6a202a5c2f4113940f87de5d8765897ab3b (patch) | |
tree | 4240e3275181ee53a1a8927c8ca9199e8ea5e403 /sys/kern/subr_counter.c | |
parent | f947570e3532e0545146fa8abd7d4366151eb282 (diff) | |
download | src-49fef6a202a5c2f4113940f87de5d8765897ab3b.tar.gz src-49fef6a202a5c2f4113940f87de5d8765897ab3b.zip |
Notes
Diffstat (limited to 'sys/kern/subr_counter.c')
-rw-r--r-- | sys/kern/subr_counter.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/kern/subr_counter.c b/sys/kern/subr_counter.c index b3ddc7adc35f..ea2759c959c8 100644 --- a/sys/kern/subr_counter.c +++ b/sys/kern/subr_counter.c @@ -41,8 +41,6 @@ __FBSDID("$FreeBSD$"); #define IN_SUBR_COUNTER_C #include <sys/counter.h> -static uma_zone_t uint64_pcpu_zone; - void counter_u64_zero(counter_u64_t c) { @@ -62,7 +60,7 @@ counter_u64_alloc(int flags) { counter_u64_t r; - r = uma_zalloc(uint64_pcpu_zone, flags); + r = uma_zalloc(pcpu_zone_64, flags); if (r != NULL) counter_u64_zero(r); @@ -73,7 +71,7 @@ void counter_u64_free(counter_u64_t c) { - uma_zfree(uint64_pcpu_zone, c); + uma_zfree(pcpu_zone_64, c); } int @@ -96,12 +94,3 @@ sysctl_handle_counter_u64(SYSCTL_HANDLER_ARGS) return (0); } - -static void -counter_startup(void) -{ - - uint64_pcpu_zone = uma_zcreate("uint64 pcpu", sizeof(uint64_t), - NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_PCPU); -} -SYSINIT(counter, SI_SUB_KMEM, SI_ORDER_ANY, counter_startup, NULL); |