Commit b98a37bc authored by Jan Beulich's avatar Jan Beulich

x86/HPET: fix oversight in 23033:84bacd800bf8

Clearly for the adjusted BUG_ON()s to not yield false positives
num_chs_used must be incremented before setting up an IRQ (and
decremented back when the setup failed).
Signed-off-by: default avatarJan Beulich <>
parent 77dd4c52
......@@ -428,10 +428,8 @@ static unsigned int __init hpet_fsb_cap_lookup(void)
ch->flags = 0;
ch->idx = i;
if ( (ch->irq = hpet_assign_irq(num_chs_used)) < 0 )
if ( (ch->irq = hpet_assign_irq(num_chs_used++)) < 0 )
printk(XENLOG_INFO "HPET: %u timers (%u will be used for broadcast)\n",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment