.. | .. |
---|
25 | 25 | #include <linux/kernel_stat.h> |
---|
26 | 26 | |
---|
27 | 27 | #include <asm/mca.h> |
---|
| 28 | +#include <asm/xtp.h> |
---|
28 | 29 | |
---|
29 | 30 | /* |
---|
30 | 31 | * 'what should we do if we get a hw irq event on an illegal vector'. |
---|
.. | .. |
---|
34 | 35 | { |
---|
35 | 36 | printk(KERN_ERR "Unexpected irq vector 0x%x on CPU %u!\n", irq, smp_processor_id()); |
---|
36 | 37 | } |
---|
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 |
---|
49 | 38 | |
---|
50 | 39 | /* |
---|
51 | 40 | * Interrupt statistics: |
---|
.. | .. |
---|
73 | 62 | irq_redir[irq] = (char) (redir & 0xff); |
---|
74 | 63 | } |
---|
75 | 64 | } |
---|
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 | | - |
---|
87 | 65 | #endif /* CONFIG_SMP */ |
---|
88 | 66 | |
---|
89 | 67 | int __init arch_early_irq_init(void) |
---|