diff options
author | 2012-09-26 12:44:51 +0200 | |
---|---|---|
committer | 2013-01-28 12:51:52 +0100 | |
commit | a1bb20c232d066de0762f8e7cf332e5ce8385210 (patch) | |
tree | 681f155e2c27670834840599d50409dc4e1045dd /drivers/iommu | |
parent | x86, io_apic: Introduce eoi_ioapic_pin call-back (diff) | |
download | linux-a1bb20c232d066de0762f8e7cf332e5ce8385210.tar.gz linux-a1bb20c232d066de0762f8e7cf332e5ce8385210.tar.bz2 linux-a1bb20c232d066de0762f8e7cf332e5ce8385210.zip |
x86, irq: Move irq_remapped out of x86 core code
The irq_remapped function is only used in IOMMU code after
the last patch. So move its definition there too.
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c index 849ce4ce500b..d56f8c17c5fe 100644 --- a/drivers/iommu/irq_remapping.c +++ b/drivers/iommu/irq_remapping.c @@ -31,6 +31,11 @@ static int set_remapped_irq_affinity(struct irq_data *data, const struct cpumask *mask, bool force); +static bool irq_remapped(struct irq_cfg *cfg) +{ + return (cfg->remapped == 1); +} + static void irq_remapping_disable_io_apic(void) { /* |