]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
x86: ioapic: Move trigger defines to io_apic.h
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 18:54:53 +0000 (19:54 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 18:58:09 +0000 (19:58 +0100)
Required for devicetree based io_apic configuration.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/io_apic.h
arch/x86/kernel/apic/io_apic.c

index be61e22dd9ea7e75b6bd7dba3956b5c767786308..c4bd267dfc50842e73ea02c562549717c47fb80a 100644 (file)
@@ -95,6 +95,10 @@ struct IR_IO_APIC_route_entry {
                index           : 15;
 } __attribute__ ((packed));
 
+#define IOAPIC_AUTO     -1
+#define IOAPIC_EDGE     0
+#define IOAPIC_LEVEL    1
+
 #ifdef CONFIG_X86_IO_APIC
 
 /*
index 46913ef88ea4c4bd3c38a629f8da6fe4cffaed0c..8d23e831a45e2413ed659c3a3cc6eb5354a096be 100644 (file)
@@ -1216,10 +1216,6 @@ void __setup_vector_irq(int cpu)
 static struct irq_chip ioapic_chip;
 static struct irq_chip ir_ioapic_chip;
 
-#define IOAPIC_AUTO     -1
-#define IOAPIC_EDGE     0
-#define IOAPIC_LEVEL    1
-
 #ifdef CONFIG_X86_32
 static inline int IO_APIC_irq_trigger(int irq)
 {