2007-01-05 04:35:45

by Zachary Amsden

[permalink] [raw]
Subject: [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.

Signed-off-by: Zachary Amsden <[email protected]>

diff -r 21d7686ee318 arch/i386/kernel/vmi.c
--- a/arch/i386/kernel/vmi.c Thu Jan 04 15:23:30 2007 -0800
+++ b/arch/i386/kernel/vmi.c Thu Jan 04 15:55:39 2007 -0800
@@ -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);
}