]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
x86: VMI, initialize IRQ vector
authorAlok Kataria <akataria@vmware.com>
Thu, 21 Aug 2008 18:26:43 +0000 (11:26 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:52:59 +0000 (16:52 +0200)
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>
arch/x86/kernel/vmiclock_32.c

index 6953859fe28965bc77a7db5955a0b3a0d143127e..254ee07f8635007262591bbdf595f819caa1358d 100644 (file)
@@ -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