aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/vmiclock_32.c
diff options
context:
space:
mode:
authorAlok Kataria <akataria@vmware.com>2008-08-21 11:26:43 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:52:59 +0200
commit2699574b3c04351f5a23c8a842e17c303d7ebb6f (patch)
tree5e6f471674dd4ffabe6464ad7d1fc87804b1eacb /arch/x86/kernel/vmiclock_32.c
parent052c0bff9b83a578654dfa513d6e3d0b3795f1e8 (diff)
downloadmrst-s0i3-test-2699574b3c04351f5a23c8a842e17c303d7ebb6f.tar.gz
mrst-s0i3-test-2699574b3c04351f5a23c8a842e17c303d7ebb6f.tar.xz
mrst-s0i3-test-2699574b3c04351f5a23c8a842e17c303d7ebb6f.zip
x86: VMI, initialize IRQ vector
Initialize vector_irq for the vmi used vector, to point to correct irq. Signed-off-by: Alok N Kataria <akataria@vmware.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/vmiclock_32.c')
-rw-r--r--arch/x86/kernel/vmiclock_32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/vmiclock_32.c b/arch/x86/kernel/vmiclock_32.c
index 6953859fe28..254ee07f863 100644
--- a/arch/x86/kernel/vmiclock_32.c
+++ b/arch/x86/kernel/vmiclock_32.c
@@ -235,11 +235,14 @@ static void __devinit vmi_time_init_clockevent(void)
void __init vmi_time_init(void)
{
+ unsigned int cpu;
/* Disable PIT: BIOSes start PIT CH0 with 18.2hz peridic. */
outb_pit(0x3a, PIT_MODE); /* binary, mode 5, LSB/MSB, ch 0 */
vmi_time_init_clockevent();
setup_irq(0, &vmi_clock_action);
+ for_each_possible_cpu(cpu)
+ per_cpu(vector_irq, cpu)[vmi_get_timer_vector()] = 0;
}
#ifdef CONFIG_X86_LOCAL_APIC