aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/irq_ia64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kernel/irq_ia64.c')
-rw-r--r--arch/ia64/kernel/irq_ia64.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/ia64/kernel/irq_ia64.c b/arch/ia64/kernel/irq_ia64.c
index 22806b94025..5cb804f9a1f 100644
--- a/arch/ia64/kernel/irq_ia64.c
+++ b/arch/ia64/kernel/irq_ia64.c
@@ -267,10 +267,36 @@ void __setup_vector_irq(int cpu)
267 } 267 }
268} 268}
269 269
270#if defined(CONFIG_IA64_GENERIC)
271static enum vector_domain_type {
272 VECTOR_DOMAIN_NONE,
273 VECTOR_DOMAIN_PERCPU
274} vector_domain_type = VECTOR_DOMAIN_NONE;
275
276static cpumask_t vector_allocation_domain(int cpu)
277{
278 if (vector_domain_type == VECTOR_DOMAIN_PERCPU)
279 return cpumask_of_cpu(cpu);
280 return CPU_MASK_ALL;
281}
282
283static int __init parse_vector_domain(char *arg)
284{
285 if (!arg)
286 return -EINVAL;
287 if (!strcmp(arg, "percpu")) {
288 vector_domain_type = VECTOR_DOMAIN_PERCPU;
289 no_int_routing = 1;
290 }
291 return 1;
292}
293early_param("vector", parse_vector_domain);
294#else
270static cpumask_t vector_allocation_domain(int cpu) 295static cpumask_t vector_allocation_domain(int cpu)
271{ 296{
272 return CPU_MASK_ALL; 297 return CPU_MASK_ALL;
273} 298}
299#endif
274 300
275 301
276void destroy_and_reserve_irq(unsigned int irq) 302void destroy_and_reserve_irq(unsigned int irq)