aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/irq_ia64.c
diff options
context:
space:
mode:
authorYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>2007-07-17 08:22:55 -0400
committerTony Luck <tony.luck@intel.com>2007-07-17 12:58:06 -0400
commitd080d397f97dd185ff48ef933be09a104d47fba5 (patch)
tree884c9f66c5b80d1e23956c4ecd2a1a1fee4dd05e /arch/ia64/kernel/irq_ia64.c
parentcd378f18cf73d92bf0b6e1e6b5759b5dd729a9f2 (diff)
[IA64] Enable percpu vector domain for IA64_GENERIC
Add per-CPU vector domain support for IA64_GENERIC. It is enabled by adding the "vector=percpu" boot option. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
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)