aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2006-10-04 05:17:01 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-04 10:55:30 -0400
commit95d77884c77beed676036d2f74d10b470a483c63 (patch)
tree7897bc159d0d8ac972abc76e01d6e54c2bca3c84 /arch
parent03571e11c4a6d08230657f80970f0a5cc7820471 (diff)
[PATCH] htirq: tidy up the htirq code
This moves the declarations for the architecture helpers into include/linux/htirq.h from the generic include/linux/pci.h. Hopefully this will make this distinction clearer. htirq.h is included where it is needed. The dependency on the msi code is fixed and removed. The Makefile is tidied up. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Tony Luck <tony.luck@intel.com> Cc: Andi Kleen <ak@suse.de> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Greg KH <greg@kroah.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/io_apic.c5
-rw-r--r--arch/x86_64/kernel/io_apic.c1
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c
index 5a1252753dbb..b7287fb499f3 100644
--- a/arch/i386/kernel/io_apic.c
+++ b/arch/i386/kernel/io_apic.c
@@ -33,6 +33,7 @@
33#include <linux/sysdev.h> 33#include <linux/sysdev.h>
34#include <linux/pci.h> 34#include <linux/pci.h>
35#include <linux/msi.h> 35#include <linux/msi.h>
36#include <linux/htirq.h>
36 37
37#include <asm/io.h> 38#include <asm/io.h>
38#include <asm/smp.h> 39#include <asm/smp.h>
@@ -2409,9 +2410,8 @@ static int __init ioapic_init_sysfs(void)
2409 2410
2410device_initcall(ioapic_init_sysfs); 2411device_initcall(ioapic_init_sysfs);
2411 2412
2412#ifdef CONFIG_PCI_MSI
2413/* 2413/*
2414 * Dynamic irq allocate and deallocation for MSI 2414 * Dynamic irq allocate and deallocation
2415 */ 2415 */
2416int create_irq(void) 2416int create_irq(void)
2417{ 2417{
@@ -2450,7 +2450,6 @@ void destroy_irq(unsigned int irq)
2450 irq_vector[irq] = 0; 2450 irq_vector[irq] = 0;
2451 spin_unlock_irqrestore(&vector_lock, flags); 2451 spin_unlock_irqrestore(&vector_lock, flags);
2452} 2452}
2453#endif /* CONFIG_PCI_MSI */
2454 2453
2455/* 2454/*
2456 * MSI mesage composition 2455 * MSI mesage composition
diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c
index e55028fba942..91728d9d3472 100644
--- a/arch/x86_64/kernel/io_apic.c
+++ b/arch/x86_64/kernel/io_apic.c
@@ -31,6 +31,7 @@
31#include <linux/acpi.h> 31#include <linux/acpi.h>
32#include <linux/sysdev.h> 32#include <linux/sysdev.h>
33#include <linux/msi.h> 33#include <linux/msi.h>
34#include <linux/htirq.h>
34#ifdef CONFIG_ACPI 35#ifdef CONFIG_ACPI
35#include <acpi/acpi_bus.h> 36#include <acpi/acpi_bus.h>
36#endif 37#endif