Skip to contentSkip to conversation

Vmi compile fix

PATCH New Zachary Amsden 1 participant 1 message Jan 5, 2007 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Vmi compile fix

The variable no_timer_check does not exist in UP builds; don't try to set it in the vmi init code.

arch/i386/kernel/vmi.c +2 -0
diff -r 21d7686ee318 arch/i386/kernel/vmi.c
@@ -913,7 +913,9 @@ void __init vmi_init(void)
 
 	local_irq_save(flags);
 	activate_vmi();
+#ifdef CONFIG_SMP
 	no_timer_check = 1;
+#endif
 	local_irq_restore(flags & X86_EFLAGS_IF);
 }