Skip to contentSkip to conversation

futex_performance_hack sysctl build fix

PATCH New Paul Mundt 1 participant 1 message May 18, 2007 Proc sysctl

lore
Share & tools
lore

Paul Mundt

author
#0 lore raw

PATCH 1/1 futex_performance_hack sysctl build fix

-rt adds a futex_performance_hack sysctl, which is only defined if kernel/futex.c is built in. This fixes the build in the CONFIG_FUTEX=n case.

--

 kernel/sysctl.c |    2 ++
 1 file changed, 2 insertions(+)
kernel/sysctl.c +2 -0
@@ -226,6 +226,7 @@
 		.mode		= 0644,
 		.proc_handler	= &proc_dointvec,
 	},
+#ifdef CONFIG_FUTEX
 	{
 		.ctl_name	= CTL_UNNUMBERED,
 		.procname	= "futex_performance_hack",
@@ -234,6 +235,7 @@
 		.mode		= 0644,
 		.proc_handler	= &proc_dointvec,
 	},
+#endif
 	{
 		.ctl_name	= KERN_PANIC,
 		.procname	= "prof_pid",