Skip to contentSkip to conversation

Remove numa_balancing sysctl dependence on CONFIG_SCHED_DEBUG

PATCH In review John Blackwood 2 participants 2 messages Sep 23, 2014 – Sep 24, 2014 Proc sysctl

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove numa_balancing sysctl dependence on CONFIG_SCHED_DEBUG

numa: numa_balancing sysctl scope change

Make the 'numa_balancing' sysctl parameter no longer dependent upon CONFIG_SCHED_DEBUG so it can be used in non-debug kernels.

kernel/sysctl.c +3 -1
Index: b/kernel/sysctl.c
===================================================================
@@ -389,6 +389,9 @@ static struct ctl_table kern_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
+#endif /* CONFIG_NUMA_BALANCING */
+#endif /* CONFIG_SCHED_DEBUG */
+#ifdef CONFIG_NUMA_BALANCING
 	{
 		.procname	= "numa_balancing",
 		.data		= NULL, /* filled in by handler */
@@ -399,7 +402,6 @@ static struct ctl_table kern_table[] = {
 		.extra2		= &one,
 	},
 #endif /* CONFIG_NUMA_BALANCING */
-#endif /* CONFIG_SCHED_DEBUG */
 	{
 		.procname	= "sched_rt_period_us",
 		.data		= &sysctl_sched_rt_period,
#1 lore raw
Quoted 4 lines · John Blackwood

numa: numa_balancing sysctl scope change

Make the 'numa_balancing' sysctl parameter no longer dependent upon CONFIG_SCHED_DEBUG so it can be used in non-debug kernels.

Looks good.
-Andi

Quoted 25 lines

Index: b/kernel/sysctl.c
===================================================================

kernel/sysctl.c +3 -1
@@ -389,6 +389,9 @@ static struct ctl_table kern_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
+#endif /* CONFIG_NUMA_BALANCING */
+#endif /* CONFIG_SCHED_DEBUG */
+#ifdef CONFIG_NUMA_BALANCING
 	{
 		.procname	= "numa_balancing",
 		.data		= NULL, /* filled in by handler */
@@ -399,7 +402,6 @@ static struct ctl_table kern_table[] = {
 		.extra2		= &one,
 	},
 #endif /* CONFIG_NUMA_BALANCING */
-#endif /* CONFIG_SCHED_DEBUG */
 	{
 		.procname	= "sched_rt_period_us",
 		.data		= &sysctl_sched_rt_period,
Signature · 1 line
[email protected] -- Speaking for myself only