[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47500BFF.1050504@openvz.org>
Date: Fri, 30 Nov 2007 16:11:27 +0300
From: Pavel Emelyanov <xemul@...nvz.org>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: "Eric W. Biederman" <ebiederm@...ssion.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
devel@...nvz.org
Subject: [PATCH 4/7][SCHED] Use the ctl paths to register tables
This includes the kernel/sched_domain entry only.
Signed-off-by: Pavel Emelyanov <xemul@...nvz.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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists