aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>2007-07-17 21:22:55 +0900
committerTony Luck <tony.luck@intel.com>2007-07-17 09:58:06 -0700
commitd080d397f97dd185ff48ef933be09a104d47fba5 (patch)
tree884c9f66c5b80d1e23956c4ecd2a1a1fee4dd05e /arch/ia64
parentcd378f18cf73d92bf0b6e1e6b5759b5dd729a9f2 (diff)
downloadkernel_samsung_smdk4412-d080d397f97dd185ff48ef933be09a104d47fba5.zip
kernel_samsung_smdk4412-d080d397f97dd185ff48ef933be09a104d47fba5.tar.gz
kernel_samsung_smdk4412-d080d397f97dd185ff48ef933be09a104d47fba5.tar.bz2
[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')
-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 22806b9..5cb804f 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)
}
}
+#if defined(CONFIG_IA64_GENERIC)
+static enum vector_domain_type {
+ VECTOR_DOMAIN_NONE,
+ VECTOR_DOMAIN_PERCPU
+} vector_domain_type = VECTOR_DOMAIN_NONE;
+
+static cpumask_t vector_allocation_domain(int cpu)
+{
+ if (vector_domain_type == VECTOR_DOMAIN_PERCPU)
+ return cpumask_of_cpu(cpu);
+ return CPU_MASK_ALL;
+}
+
+static int __init parse_vector_domain(char *arg)
+{
+ if (!arg)
+ return -EINVAL;
+ if (!strcmp(arg, "percpu")) {
+ vector_domain_type = VECTOR_DOMAIN_PERCPU;
+ no_int_routing = 1;
+ }
+ return 1;
+}
+early_param("vector", parse_vector_domain);
+#else
static cpumask_t vector_allocation_domain(int cpu)
{
return CPU_MASK_ALL;
}
+#endif
void destroy_and_reserve_irq(unsigned int irq)