[PATCH 4/7][SCHED] Use the ctl paths to register tables

Pavel Emelyanov
2007-11-30T13:11:46Z

This includes the kernel/sched_domain entry only.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

---

diff --git a/kernel/sched.c b/kernel/sched.c
index 3ffec8c..a013dae 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5431,12 +5431,10 @@ static struct ctl_table sd_ctl_dir[] = {
{0, },
};

-static struct ctl_table sd_ctl_root[] = {
+static struct ctl_path sd_ctl_path[] = {
{
- .ctl_name = CTL_KERN,
.procname = "kernel",
- .mode = 0555,
- .child = sd_ctl_dir,
+ .ctl_name = CTL_KERN,
},
{0, },
};
@@ -5565,7 +5563,7 @@ static void register_sched_domain_sysctl(void)
}

WARN_ON(sd_sysctl_header);
- sd_sysctl_header = register_sysctl_table(sd_ctl_root);
+ sd_sysctl_header = register_sysctl_paths(sd_ctl_path, sd_ctl_dir);
}

/* may be called multiple times per register */
--
1.5.3.4