mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-04 04:04:19 +00:00
x86, irq: Move irq_remapping_enabled declaration to iommu code
Remove the last left-over from this flag from x86 code. 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:
parent
1d254428c0
commit
078e1ee26a
@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_IRQ_REMAP
|
#ifdef CONFIG_IRQ_REMAP
|
||||||
|
|
||||||
extern int irq_remapping_enabled;
|
|
||||||
|
|
||||||
extern void setup_irq_remapping_ops(void);
|
extern void setup_irq_remapping_ops(void);
|
||||||
extern int irq_remapping_supported(void);
|
extern int irq_remapping_supported(void);
|
||||||
extern int irq_remapping_prepare(void);
|
extern int irq_remapping_prepare(void);
|
||||||
@ -49,8 +47,6 @@ extern void panic_if_irq_remap(const char *msg);
|
|||||||
|
|
||||||
#else /* CONFIG_IRQ_REMAP */
|
#else /* CONFIG_IRQ_REMAP */
|
||||||
|
|
||||||
#define irq_remapping_enabled 0
|
|
||||||
|
|
||||||
static inline void setup_irq_remapping_ops(void) { }
|
static inline void setup_irq_remapping_ops(void) { }
|
||||||
static inline int irq_remapping_supported(void) { return 0; }
|
static inline int irq_remapping_supported(void) { return 0; }
|
||||||
static inline int irq_remapping_prepare(void) { return -ENODEV; }
|
static inline int irq_remapping_prepare(void) { return -ENODEV; }
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
#include <asm/irq_remapping.h>
|
#include <asm/irq_remapping.h>
|
||||||
#include <asm/iommu_table.h>
|
#include <asm/iommu_table.h>
|
||||||
|
|
||||||
|
#include "irq_remapping.h"
|
||||||
|
|
||||||
/* No locks are needed as DMA remapping hardware unit
|
/* No locks are needed as DMA remapping hardware unit
|
||||||
* list is constructed at boot time and hotplug of
|
* list is constructed at boot time and hotplug of
|
||||||
* these units are not supported by the architecture.
|
* these units are not supported by the architecture.
|
||||||
|
@ -46,6 +46,8 @@
|
|||||||
#include <asm/cacheflush.h>
|
#include <asm/cacheflush.h>
|
||||||
#include <asm/iommu.h>
|
#include <asm/iommu.h>
|
||||||
|
|
||||||
|
#include "irq_remapping.h"
|
||||||
|
|
||||||
#define ROOT_SIZE VTD_PAGE_SIZE
|
#define ROOT_SIZE VTD_PAGE_SIZE
|
||||||
#define CONTEXT_SIZE VTD_PAGE_SIZE
|
#define CONTEXT_SIZE VTD_PAGE_SIZE
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ struct msi_msg;
|
|||||||
extern int disable_irq_remap;
|
extern int disable_irq_remap;
|
||||||
extern int disable_sourceid_checking;
|
extern int disable_sourceid_checking;
|
||||||
extern int no_x2apic_optout;
|
extern int no_x2apic_optout;
|
||||||
|
extern int irq_remapping_enabled;
|
||||||
|
|
||||||
struct irq_remap_ops {
|
struct irq_remap_ops {
|
||||||
/* Check whether Interrupt Remapping is supported */
|
/* Check whether Interrupt Remapping is supported */
|
||||||
|
Loading…
Reference in New Issue
Block a user