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

From: Pavel Emelyanov
Date: Fri Nov 30 2007 - 08:11:49 EST


This includes the kernel/sched_domain entry only.

Signed-off-by: Pavel Emelyanov <xemul@xxxxxxxxxx>

---

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/