diff options
author | trasz <trasz@FreeBSD.org> | 2015-08-05 15:57:08 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-08-05 15:57:08 +0000 |
commit | 17d50360d14e48593249c1ba8f818b9227c9480d (patch) | |
tree | 88a7c4d373d8326c082afffa007af92a3ed463bc | |
parent | 2cbf021408d8aca2fc55ef11a68faac08842f8fd (diff) | |
download | FreeBSD-src-17d50360d14e48593249c1ba8f818b9227c9480d.zip FreeBSD-src-17d50360d14e48593249c1ba8f818b9227c9480d.tar.gz |
Make the kern.racct.tunable actually work.
This is a direct commit to 10-STABLE - 11-CURRENT is not affected,
because tunables are automatically fetched there.
MFC after: ASAP
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/kern/kern_racct.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_racct.c b/sys/kern/kern_racct.c index 184287c..1f86a8b 100644 --- a/sys/kern/kern_racct.c +++ b/sys/kern/kern_racct.c @@ -78,6 +78,7 @@ int racct_enable = 1; #endif SYSCTL_NODE(_kern, OID_AUTO, racct, CTLFLAG_RW, 0, "Resource Accounting"); +TUNABLE_INT("kern.racct.enable", &racct_enable); SYSCTL_UINT(_kern_racct, OID_AUTO, enable, CTLFLAG_RDTUN, &racct_enable, 0, "Enable RACCT/RCTL"); SYSCTL_UINT(_kern_racct, OID_AUTO, pcpu_threshold, CTLFLAG_RW, &pcpu_threshold, |