forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/ia64/kernel/irq.c
....@@ -25,6 +25,7 @@
2525 #include <linux/kernel_stat.h>
2626
2727 #include <asm/mca.h>
28
+#include <asm/xtp.h>
2829
2930 /*
3031 * 'what should we do if we get a hw irq event on an illegal vector'.
....@@ -34,18 +35,6 @@
3435 {
3536 printk(KERN_ERR "Unexpected irq vector 0x%x on CPU %u!\n", irq, smp_processor_id());
3637 }
37
-
38
-#ifdef CONFIG_IA64_GENERIC
39
-ia64_vector __ia64_irq_to_vector(int irq)
40
-{
41
- return irq_cfg[irq].vector;
42
-}
43
-
44
-unsigned int __ia64_local_vector_to_irq (ia64_vector vec)
45
-{
46
- return __this_cpu_read(vector_irq[vec]);
47
-}
48
-#endif
4938
5039 /*
5140 * Interrupt statistics:
....@@ -73,17 +62,6 @@
7362 irq_redir[irq] = (char) (redir & 0xff);
7463 }
7564 }
76
-
77
-bool is_affinity_mask_valid(const struct cpumask *cpumask)
78
-{
79
- if (ia64_platform_is("sn2")) {
80
- /* Only allow one CPU to be specified in the smp_affinity mask */
81
- if (cpumask_weight(cpumask) != 1)
82
- return false;
83
- }
84
- return true;
85
-}
86
-
8765 #endif /* CONFIG_SMP */
8866
8967 int __init arch_early_irq_init(void)