aboutsummaryrefslogtreecommitdiffstats
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
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>
-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)