diff options
| author | pooka <pooka@NetBSD.org> | 2014-02-25 18:30:08 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2014-02-25 18:30:08 +0000 |
| commit | 05fd0bf3e1843b7a1e600ce4f7814ce6d7f7fd62 (patch) | |
| tree | aba8182016b10f912c8727302700741239282d12 /sys/compat/linux/common/linux_sysctl.c | |
| parent | 58dce71adab75247a41a496492671e7caf532ac2 (diff) | |
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Diffstat (limited to 'sys/compat/linux/common/linux_sysctl.c')
| -rw-r--r-- | sys/compat/linux/common/linux_sysctl.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/compat/linux/common/linux_sysctl.c b/sys/compat/linux/common/linux_sysctl.c index 3c5042b1dc4..c74144f4516 100644 --- a/sys/compat/linux/common/linux_sysctl.c +++ b/sys/compat/linux/common/linux_sysctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysctl.c,v 1.41 2013/11/18 01:36:49 chs Exp $ */ +/* $NetBSD: linux_sysctl.c,v 1.42 2014/02/25 18:30:09 pooka Exp $ */ /*- * Copyright (c) 2003, 2008 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.41 2013/11/18 01:36:49 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.42 2014/02/25 18:30:09 pooka Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -108,11 +108,6 @@ linux_sysctl_init(void) sysctl_createv(&linux_clog2, 0, NULL, NULL, CTLFLAG_PERMANENT, - CTLTYPE_NODE, "emul", NULL, - NULL, 0, NULL, 0, - CTL_EMUL, CTL_EOL); - sysctl_createv(&linux_clog2, 0, NULL, NULL, - CTLFLAG_PERMANENT, CTLTYPE_NODE, "linux", SYSCTL_DESCR("Linux emulation settings"), NULL, 0, NULL, 0, |
