mirror of
https://github.com/suyu-emu/horinux.git
synced 2026-09-21 14:15:21 -07:00
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>
This commit is contained in:
@@ -48,11 +48,6 @@ extern bool setup_remapped_irq(int irq,
|
|||||||
struct irq_cfg *cfg,
|
struct irq_cfg *cfg,
|
||||||
struct irq_chip *chip);
|
struct irq_chip *chip);
|
||||||
|
|
||||||
static inline bool irq_remapped(struct irq_cfg *cfg)
|
|
||||||
{
|
|
||||||
return (cfg->remapped == 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
void irq_remap_modify_chip_defaults(struct irq_chip *chip);
|
void irq_remap_modify_chip_defaults(struct irq_chip *chip);
|
||||||
|
|
||||||
#else /* CONFIG_IRQ_REMAP */
|
#else /* CONFIG_IRQ_REMAP */
|
||||||
@@ -87,11 +82,6 @@ static inline void panic_if_irq_remap(const char *msg)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool irq_remapped(struct irq_cfg *cfg)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void irq_remap_modify_chip_defaults(struct irq_chip *chip)
|
static inline void irq_remap_modify_chip_defaults(struct irq_chip *chip)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ static int set_remapped_irq_affinity(struct irq_data *data,
|
|||||||
const struct cpumask *mask,
|
const struct cpumask *mask,
|
||||||
bool force);
|
bool force);
|
||||||
|
|
||||||
|
static bool irq_remapped(struct irq_cfg *cfg)
|
||||||
|
{
|
||||||
|
return (cfg->remapped == 1);
|
||||||
|
}
|
||||||
|
|
||||||
static void irq_remapping_disable_io_apic(void)
|
static void irq_remapping_disable_io_apic(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user