Commit 6d671e1b authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Thomas Gleixner

x86/time: Unconditionally register legacy timer interrupt

Even without a PIC/PIT the legacy timer interrupt is required for HPET in
legacy replacement mode.
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: len.brown@intel.com
Cc: rui.zhang@intel.com
Link: https://lkml.kernel.org/r/20171222092243.382623763@infradead.org
parent 30c7e5b1
...@@ -69,9 +69,12 @@ static struct irqaction irq0 = { ...@@ -69,9 +69,12 @@ static struct irqaction irq0 = {
static void __init setup_default_timer_irq(void) static void __init setup_default_timer_irq(void)
{ {
if (!nr_legacy_irqs()) /*
return; * Unconditionally register the legacy timer; even without legacy
setup_irq(0, &irq0); * PIC/PIT we need this for the HPET0 in legacy replacement mode.
*/
if (setup_irq(0, &irq0))
pr_info("Failed to register legacy timer interrupt\n");
} }
/* Default timer init function */ /* Default timer init function */
......
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