]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
lguest: fix timer interrupt setup
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 30 May 2011 17:14:08 +0000 (11:14 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:30 +0000 (15:05 -0700)
commit 15517f7c213442e4d8a098cf0732b237f764c576 upstream.

Without an IRQ chip set, we now get a WARN_ON and no timer interrupt.  This
prevents booting.

Fortunately, the fix is a one-liner: set up the timer IRQ like everything
else.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/lguest/boot.c

index 1cd608973ce594f6e0853170ef3e7abc84425c82..493ea1f5de4d5af385496c688c9b2d733d80e975 100644 (file)
@@ -995,6 +995,7 @@ static void lguest_time_irq(unsigned int irq, struct irq_desc *desc)
 static void lguest_time_init(void)
 {
        /* Set up the timer interrupt (0) to go to our simple timer routine */
+       lguest_setup_irq(0);
        irq_set_handler(0, lguest_time_irq);
 
        clocksource_register(&lguest_clock);