aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdo Yariv <[email protected]>2012-06-14 18:43:08 +0300
committerIngo Molnar <[email protected]>2012-06-15 13:54:11 +0200
commitd48daf37a3d2e2b28a61e615c0fc538301edb0dd (patch)
treef40d28281164efdf915ae252d8fbc6445a63458f
parent110c1e1f1bf61e5dca53ff5c9dc75243ce87c002 (diff)
x86/vsmp: Fix linker error when CONFIG_PROC_FS is not set
set_vsmp_pv_ops() references no_irq_affinity which is undeclared if CONFIG_PROC_FS isn't set. Fix this by adding an #ifdef around this variable's access. Reported-by: Fengguang Wu <[email protected]> Signed-off-by: Ido Yariv <[email protected]> Acked-by: Shai Fultheim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/kernel/vsmp_64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/vsmp_64.c b/arch/x86/kernel/vsmp_64.c
index 6b96a7374f94..3f0285ac00fa 100644
--- a/arch/x86/kernel/vsmp_64.c
+++ b/arch/x86/kernel/vsmp_64.c
@@ -101,7 +101,10 @@ static void __init set_vsmp_pv_ops(void)
#ifdef CONFIG_SMP
if (cap & ctl & BIT(8)) {
ctl &= ~BIT(8);
+#ifdef CONFIG_PROC_FS
+ /* Don't let users change irq affinity via procfs */
no_irq_affinity = 1;
+#endif
}
#endif