aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86/irq_remapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/irq_remapping.h')
-rw-r--r--include/asm-x86/irq_remapping.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-x86/irq_remapping.h b/include/asm-x86/irq_remapping.h
new file mode 100644
index 00000000000..78242c6ffa5
--- /dev/null
+++ b/include/asm-x86/irq_remapping.h
@@ -0,0 +1,8 @@
+#ifndef _ASM_IRQ_REMAPPING_H
+#define _ASM_IRQ_REMAPPING_H
+
+extern int x2apic;
+
+#define IRTE_DEST(dest) ((x2apic) ? dest : dest << 8)
+
+#endif