aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2008-12-05 21:58:31 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-08 08:31:51 -0500
commit0b8f1efad30bd58f89961b82dfe68b9edf8fd2ac (patch)
tree239251bad791fd60af8c0f2ba365b7188395c83f /init/main.c
parent218d11a8b071b23b76c484fd5f72a4fe3306801e (diff)
sparse irq_desc[] array: core kernel and x86 changes
Impact: new feature Problem on distro kernels: irq_desc[NR_IRQS] takes megabytes of RAM with NR_CPUS set to large values. The goal is to be able to scale up to much larger NR_IRQS value without impacting the (important) common case. To solve this, we generalize irq_desc[NR_IRQS] to an (optional) array of irq_desc pointers. When CONFIG_SPARSE_IRQ=y is used, we use kzalloc_node to get irq_desc, this also makes the IRQ descriptors NUMA-local (to the site that calls request_irq()). This gets rid of the irq_cfg[] static array on x86 as well: irq_cfg now uses desc->chip_data for x86 to store irq_cfg. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index 7e117a231af1..c1f999a3cf31 100644
--- a/init/main.c
+++ b/init/main.c
@@ -539,6 +539,15 @@ void __init __weak thread_info_cache_init(void)
539{ 539{
540} 540}
541 541
542void __init __weak arch_early_irq_init(void)
543{
544}
545
546void __init __weak early_irq_init(void)
547{
548 arch_early_irq_init();
549}
550
542asmlinkage void __init start_kernel(void) 551asmlinkage void __init start_kernel(void)
543{ 552{
544 char * command_line; 553 char * command_line;
@@ -603,6 +612,8 @@ asmlinkage void __init start_kernel(void)
603 sort_main_extable(); 612 sort_main_extable();
604 trap_init(); 613 trap_init();
605 rcu_init(); 614 rcu_init();
615 /* init some links before init_ISA_irqs() */
616 early_irq_init();
606 init_IRQ(); 617 init_IRQ();
607 pidhash_init(); 618 pidhash_init();
608 init_timers(); 619 init_timers();