diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-04-13 22:29:52 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-04-24 09:36:53 -0400 |
commit | 9c72496698a4dadd406d159f7735851a63ef9412 (patch) | |
tree | 6dcdc1f512a411368f53857a18502f57a0f8e534 | |
parent | 099c5c03487f6bca30c628e14e666788dd61fb33 (diff) |
irq_remapping/amd: Move struct irq_2_irte into amd_iommu.c
Now only amd_iommu.c access irq_2_irte, so move it from hw_irq.h into
amd_iommu.c.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Tested-by: Joerg Roedel <jroedel@suse.de>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: David Cohen <david.a.cohen@linux.intel.com>
Cc: Sander Eikelenboom <linux@eikelenboom.it>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: iommu@lists.linux-foundation.org
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dimitri Sivanich <sivanich@sgi.com>
Cc: Joerg Roedel <joro@8bytes.org>
Link: http://lkml.kernel.org/r/1428978610-28986-16-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/include/asm/hw_irq.h | 13 | ||||
-rw-r--r-- | drivers/iommu/amd_iommu.c | 5 |
2 files changed, 5 insertions, 13 deletions
diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index 1e0ee1029ef6..e47bc4de5630 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h | |||
@@ -94,14 +94,6 @@ extern void trace_call_function_single_interrupt(void); | |||
94 | #define trace_kvm_posted_intr_ipi kvm_posted_intr_ipi | 94 | #define trace_kvm_posted_intr_ipi kvm_posted_intr_ipi |
95 | #endif /* CONFIG_TRACING */ | 95 | #endif /* CONFIG_TRACING */ |
96 | 96 | ||
97 | #ifdef CONFIG_IRQ_REMAP | ||
98 | /* AMD specific interrupt remapping information */ | ||
99 | struct irq_2_irte { | ||
100 | u16 devid; /* Device ID for IRTE table */ | ||
101 | u16 index; /* Index into IRTE table*/ | ||
102 | }; | ||
103 | #endif /* CONFIG_IRQ_REMAP */ | ||
104 | |||
105 | struct irq_domain; | 97 | struct irq_domain; |
106 | 98 | ||
107 | #ifdef CONFIG_X86_LOCAL_APIC | 99 | #ifdef CONFIG_X86_LOCAL_APIC |
@@ -184,11 +176,6 @@ struct irq_cfg { | |||
184 | unsigned int dest_apicid; | 176 | unsigned int dest_apicid; |
185 | u8 vector; | 177 | u8 vector; |
186 | u8 move_in_progress : 1; | 178 | u8 move_in_progress : 1; |
187 | #ifdef CONFIG_IRQ_REMAP | ||
188 | union { | ||
189 | struct irq_2_irte irq_2_irte; | ||
190 | }; | ||
191 | #endif | ||
192 | union { | 179 | union { |
193 | #ifdef CONFIG_X86_IO_APIC | 180 | #ifdef CONFIG_X86_IO_APIC |
194 | struct { | 181 | struct { |
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 9ebc81dd9d75..b5d903cb2804 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -3852,6 +3852,11 @@ union irte { | |||
3852 | } fields; | 3852 | } fields; |
3853 | }; | 3853 | }; |
3854 | 3854 | ||
3855 | struct irq_2_irte { | ||
3856 | u16 devid; /* Device ID for IRTE table */ | ||
3857 | u16 index; /* Index into IRTE table*/ | ||
3858 | }; | ||
3859 | |||
3855 | struct amd_ir_data { | 3860 | struct amd_ir_data { |
3856 | struct irq_2_irte irq_2_irte; | 3861 | struct irq_2_irte irq_2_irte; |
3857 | union irte irte_entry; | 3862 | union irte irte_entry; |