Multiple vector domain support - change ia64 Kconfig
RFC PATCH 1/10 Multiple vector domain support - change ia64 Kconfig
This patch adds the following configs options into arch/ia64/Kconfig
o VECTOR_DOMAIN Multiple vector domain support
o NR_VECTOR_DOMAINS # of vector domains
Signed-off-by Kenji Kaneshige <[email protected]>
---
linux-2.6.13-rc1-kanesige/arch/ia64/Kconfig | 17 +++++++++++++++++ linux-2.6.13-rc1-kanesige/include/asm-ia64/irq.h | 8 +++++++- 2 files changed, 24 insertions(+), 1 deletion(-)
arch/ia64/Kconfig renamed from arch/ia64/Kconfig~vector-domain-ia64-change-Kconfig +17 -0
@@ -350,6 +350,23 @@ config ACPI_DEALLOCATE_IRQ depends on IOSAPIC && EXPERIMENTAL default y +config VECTOR_DOMAIN + bool "Multiple vector domain support" + depends on (SMP && !HOTPLUG_CPU && !PCI_MSI) + default n + help + This option enables multiple vector domain support. If you + system has many interrupt sources, you should say Y here. If + unsure, say N here. + +config NR_VECTOR_DOMAINS + int "Maximum number of vector domains (2-512)" + range 2 512 + depends on VECTOR_DOMAIN + default 2 + help + This option specifies muximum number of vector domains. + source "drivers/firmware/Kconfig" source "fs/Kconfig.binfmt"
include/asm-ia64/irq.h renamed from include/asm-ia64/irq.h~vector-domain-ia64-change-Kconfig +7 -1
@@ -11,7 +11,13 @@* 02/29/00 D.Mosberger moved most things into hw_irq.h */ -#define NR_IRQS 256 +#ifndef CONFIG_VECTOR_DOMAIN +#define NR_VECTOR_DOMAINS (1) +#else +#define NR_VECTOR_DOMAINS CONFIG_NR_VECTOR_DOMAINS +#endif /* CONFIG_VECTOR_DOMAIN */ + +#define NR_IRQS (256 * NR_VECTOR_DOMAINS)#define NR_IRQ_VECTORS NR_IRQS static __inline__ int
_