Skip to contentSkip to conversation

Fix for sched-cfs sysctl.

PATCH New Russell Harmon 1 participant 1 message Nov 26, 2007 Proc sysctl

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix for sched-cfs sysctl.

This trivial patch fixes a compilation error that occurs when CONFIG_FAIR_GROUP_SCHED and !CONFIG_SMP.

kernel/sysctl.c +1 -1
index 678223a..8bebf25 100644
@@ -330,7 +330,7 @@ static struct ctl_table kern_table[] = {
               .mode           = 644,
               .proc_handler   = &proc_dointvec,
       },
-#ifdef CONFIG_FAIR_GROUP_SCHED
+#if defined(CONFIG_FAIR_GROUP_SCHED) && defined(CONFIG_SMP)
       {
               .ctl_name       = CTL_UNNUMBERED,
               .procname       = "sched_min_bal_int_shares",
kernel/sysctl.c +1 -1
index 678223a..8bebf25 100644
@@ -330,7 +330,7 @@ static struct ctl_table kern_table[] = {
 		.mode		= 644,
 		.proc_handler	= &proc_dointvec,
 	},
-#ifdef CONFIG_FAIR_GROUP_SCHED
+#if defined(CONFIG_FAIR_GROUP_SCHED) && defined(CONFIG_SMP)
 	{
 		.ctl_name	= CTL_UNNUMBERED,
 		.procname	= "sched_min_bal_int_shares",