forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/ia64/kernel/iosapic.c
....@@ -67,10 +67,7 @@
6767 * used as architecture-independent interrupt handling mechanism in Linux.
6868 * As an IRQ is a number, we have to have
6969 * IA-64 interrupt vector number <-> IRQ number mapping. On smaller
70
- * systems, we use one-to-one mapping between IA-64 vector and IRQ. A
71
- * platform can implement platform_irq_to_vector(irq) and
72
- * platform_local_vector_to_irq(vector) APIs to differentiate the mapping.
73
- * Please see also arch/ia64/include/asm/hw_irq.h for those APIs.
70
+ * systems, we use one-to-one mapping between IA-64 vector and IRQ.
7471 *
7572 * To sum up, there are three levels of mappings involved:
7673 *
....@@ -90,15 +87,15 @@
9087 #include <linux/slab.h>
9188 #include <linux/smp.h>
9289 #include <linux/string.h>
93
-#include <linux/bootmem.h>
90
+#include <linux/memblock.h>
9491
9592 #include <asm/delay.h>
9693 #include <asm/hw_irq.h>
9794 #include <asm/io.h>
9895 #include <asm/iosapic.h>
99
-#include <asm/machvec.h>
10096 #include <asm/processor.h>
10197 #include <asm/ptrace.h>
98
+#include <asm/xtp.h>
10299
103100 #undef DEBUG_INTERRUPT_ROUTING
104101
....@@ -646,10 +643,8 @@
646643 if (!cpu_online(smp_processor_id()))
647644 return cpu_physical_id(smp_processor_id());
648645
649
-#ifdef CONFIG_ACPI
650646 if (cpe_vector > 0 && irq_to_vector(irq) == IA64_CPEP_VECTOR)
651647 return get_cpei_target_cpu();
652
-#endif
653648
654649 #ifdef CONFIG_NUMA
655650 {