Skip to content

Commit

Permalink
lguest: fix timer interrupt setup
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: [email protected] # .39.x
  • Loading branch information
rustyrussell committed May 30, 2011
1 parent 55922c9 commit 15517f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/lguest/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,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_hz(&lguest_clock, NSEC_PER_SEC);
Expand Down

0 comments on commit 15517f7

Please sign in to comment.