aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2007-10-15 11:00:14 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:14 -0400
commitace8b3d633f93da8535921bf3e3679db3c619578 (patch)
tree0769cf68ca9c1db2cb1b0369675691a2fe184065 /kernel/sched.c
parent638e13ac37a1a89473415f407cbffc1688a20fe2 (diff)
sched: some proc entries are missed in sched_domain sys_ctl debug code
cache_nice_tries and flags entry do not appear in proc fs sched_domain directory, because ctl_table entry is skipped. This patch fixes the issue. Signed-off-by: Zou Nan hai <nanhai.zou@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 48fc74b6df55..b7dff36c7c8c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5284,7 +5284,7 @@ set_table_entry(struct ctl_table *entry,
5284static struct ctl_table * 5284static struct ctl_table *
5285sd_alloc_ctl_domain_table(struct sched_domain *sd) 5285sd_alloc_ctl_domain_table(struct sched_domain *sd)
5286{ 5286{
5287 struct ctl_table *table = sd_alloc_ctl_entry(14); 5287 struct ctl_table *table = sd_alloc_ctl_entry(12);
5288 5288
5289 set_table_entry(&table[0], "min_interval", &sd->min_interval, 5289 set_table_entry(&table[0], "min_interval", &sd->min_interval,
5290 sizeof(long), 0644, proc_doulongvec_minmax); 5290 sizeof(long), 0644, proc_doulongvec_minmax);
@@ -5304,10 +5304,10 @@ sd_alloc_ctl_domain_table(struct sched_domain *sd)
5304 sizeof(int), 0644, proc_dointvec_minmax); 5304 sizeof(int), 0644, proc_dointvec_minmax);
5305 set_table_entry(&table[8], "imbalance_pct", &sd->imbalance_pct, 5305 set_table_entry(&table[8], "imbalance_pct", &sd->imbalance_pct,
5306 sizeof(int), 0644, proc_dointvec_minmax); 5306 sizeof(int), 0644, proc_dointvec_minmax);
5307 set_table_entry(&table[10], "cache_nice_tries", 5307 set_table_entry(&table[9], "cache_nice_tries",
5308 &sd->cache_nice_tries, 5308 &sd->cache_nice_tries,
5309 sizeof(int), 0644, proc_dointvec_minmax); 5309 sizeof(int), 0644, proc_dointvec_minmax);
5310 set_table_entry(&table[12], "flags", &sd->flags, 5310 set_table_entry(&table[10], "flags", &sd->flags,
5311 sizeof(int), 0644, proc_dointvec_minmax); 5311 sizeof(int), 0644, proc_dointvec_minmax);
5312 5312
5313 return table; 5313 return table;