aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/kernel-parameters.txt3
-rw-r--r--arch/ia64/kernel/irq_ia64.c26
2 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 8363ad3ba018..c48bc2e159ce 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -1859,6 +1859,9 @@ and is between 256 and 4096 characters. It is defined in the file
1859 vdso=1: enable VDSO (default) 1859 vdso=1: enable VDSO (default)
1860 vdso=0: disable VDSO mapping 1860 vdso=0: disable VDSO mapping
1861 1861
1862 vector= [IA-64,SMP]
1863 vector=percpu: enable percpu vector domain
1864
1862 video= [FB] Frame buffer configuration 1865 video= [FB] Frame buffer configuration
1863 See Documentation/fb/modedb.txt. 1866 See Documentation/fb/modedb.txt.
1864 1867
diff --git a/arch/ia64/kernel/irq_ia64.c b/arch/ia64/kernel/irq_ia64.c
index 22806b94025a..5cb804f9a1ff 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)