aboutsummaryrefslogtreecommitdiffstats
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 000000000000..78242c6ffa58
--- /dev/null
+++ b/include/asm-x86/irq_remapping.h
@@ -0,0 +1,8 @@
1#ifndef _ASM_IRQ_REMAPPING_H
2#define _ASM_IRQ_REMAPPING_H
3
4extern int x2apic;
5
6#define IRTE_DEST(dest) ((x2apic) ? dest : dest << 8)
7
8#endif