linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ PATCH ] Remove numa_balancing sysctl dependence on CONFIG_SCHED_DEBUG
@ 2014-09-23 18:18 John Blackwood
  2014-09-24  4:50 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: John Blackwood @ 2014-09-23 18:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andi Kleen


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.

Signed-off-by: John Blackwood <john.blackwood@ccur.com>

Index: b/kernel/sysctl.c
===================================================================
--- a/kernel/sysctl.c
+++ 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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ PATCH ] Remove numa_balancing sysctl dependence on CONFIG_SCHED_DEBUG
  2014-09-23 18:18 [ PATCH ] Remove numa_balancing sysctl dependence on CONFIG_SCHED_DEBUG John Blackwood
@ 2014-09-24  4:50 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2014-09-24  4:50 UTC (permalink / raw)
  To: John Blackwood; +Cc: linux-kernel

John Blackwood <john.blackwood@ccur.com> writes:

> 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

>
> Signed-off-by: John Blackwood <john.blackwood@ccur.com>
>
> Index: b/kernel/sysctl.c
> ===================================================================
> --- a/kernel/sysctl.c
> +++ 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,

-- 
ak@linux.intel.com -- Speaking for myself only

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-24  4:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-23 18:18 [ PATCH ] Remove numa_balancing sysctl dependence on CONFIG_SCHED_DEBUG John Blackwood
2014-09-24  4:50 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).