aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 23:50:15 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:52:50 -0400
commit46926b67fc663d357a1a8174328998a9e49da0b8 (patch)
tree33870a6c416bbc4d246ecfbf015a78c61943a36d /init
parent7d94f7ca401dd7f445fda9a971a48aa5427b3e55 (diff)
generic: add irq_desc in function in parameter
So we could remove some duplicated calling to irq_desc v2: make sure irq_desc in init/main.c is not used without generic_hardirqs Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init')
-rw-r--r--init/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index ab97d0877acc..0d2e60144f83 100644
--- a/init/main.c
+++ b/init/main.c
@@ -590,6 +590,13 @@ void pre_alloc_dyn_array(void)
590 if (da->init_work) 590 if (da->init_work)
591 da->init_work(da); 591 da->init_work(da);
592 } 592 }
593#else
594#ifdef CONFIF_GENERIC_HARDIRQS
595 unsigned int i;
596
597 for (i = 0; i < NR_IRQS; i++)
598 irq_desc[i].irq = i;
599#endif
593#endif 600#endif
594} 601}
595 602