sysctl: Register the base sysctl table like any other sysctl table.
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 6 Jan 2012 11:34:20 +0000 (03:34 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Jan 2012 00:37:54 +0000 (16:37 -0800)
commitde4e83bd6b5e16d491ec068cd22801d5d063b07a
treed6b38f1284186abe5f20cfe996be9a4853c503b4
parent0ce8974d504913a0f0ae2d97b20a5ac665431a41
sysctl: Register the base sysctl table like any other sysctl table.

Simplify the code by treating the base sysctl table like any other
sysctl table and register it with register_sysctl_table.

To ensure this table is registered early enough to avoid problems
call sysctl_init from proc_sys_init.

Rename sysctl_net.c:sysctl_init() to net_sysctl_init() to avoid
name conflicts now that kernel/sysctl.c:sysctl_init() is no longer
static.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/proc_sysctl.c
include/linux/sysctl.h
kernel/sysctl.c
net/sysctl_net.c