diff options
author | Joerg Roedel <joro@8bytes.org> | 2012-09-26 06:44:41 -0400 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-01-28 06:17:26 -0500 |
commit | 6a9f5de27216801b4e38ccd8aa0168a5dd8eca9b (patch) | |
tree | e25d4117d6375d5789ee556cdceb8ed24dd2afcd /drivers/iommu | |
parent | a6a25dd3270944f3c4182ffcbe0f60482471e849 (diff) |
x86, io_apic: Move irq_remapping_enabled checks out of check_timer()
Move these checks to IRQ remapping code by introducing the
panic_on_irq_remap() function.
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Acked-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/irq_remapping.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c index 886ad67987fd..ebd02bf98062 100644 --- a/drivers/iommu/irq_remapping.c +++ b/drivers/iommu/irq_remapping.c | |||
@@ -321,3 +321,9 @@ int setup_hpet_msi_remapped(unsigned int irq, unsigned int id) | |||
321 | 321 | ||
322 | return remap_ops->setup_hpet_msi(irq, id); | 322 | return remap_ops->setup_hpet_msi(irq, id); |
323 | } | 323 | } |
324 | |||
325 | void panic_if_irq_remap(const char *msg) | ||
326 | { | ||
327 | if (irq_remapping_enabled) | ||
328 | panic(msg); | ||
329 | } | ||