aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-14 06:13:45 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-14 06:13:45 -0500
commite46d51787e23a607cac5f593ac9926743a636dff (patch)
tree4efb93f31c6eacb8fcbaa137acf894ea8d309e0e /kernel
parenta4a0acf8e17e3d08e28b721ceceb898fbc959ceb (diff)
parent4a046d1754ee6ebb6f399696805ed61ea0444d4c (diff)
Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/travis/linux-2.6-cpus4096-for-ingo into cpus4096
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/handle.c9
-rw-r--r--kernel/softirq.c5
2 files changed, 7 insertions, 7 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 04d3e46031e5..375d68cd5bf0 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -59,10 +59,6 @@ EXPORT_SYMBOL_GPL(nr_irqs);
59 59
60#ifdef CONFIG_SPARSE_IRQ 60#ifdef CONFIG_SPARSE_IRQ
61 61
62#ifndef max_nr_irqs
63#define max_nr_irqs(nr_cpus) NR_IRQS
64#endif
65
66static struct irq_desc irq_desc_init = { 62static struct irq_desc irq_desc_init = {
67 .irq = -1, 63 .irq = -1,
68 .status = IRQ_DISABLED, 64 .status = IRQ_DISABLED,
@@ -137,9 +133,8 @@ int __init early_irq_init(void)
137 int legacy_count; 133 int legacy_count;
138 int i; 134 int i;
139 135
140 /* initialize nr_irqs based on nr_cpu_ids */ 136 /* initialize nr_irqs based on nr_cpu_ids */
141 nr_irqs = max_nr_irqs(nr_cpu_ids); 137 arch_probe_nr_irqs();
142
143 printk(KERN_INFO "NR_IRQS:%d nr_irqs:%d\n", NR_IRQS, nr_irqs); 138 printk(KERN_INFO "NR_IRQS:%d nr_irqs:%d\n", NR_IRQS, nr_irqs);
144 139
145 desc = irq_desc_legacy; 140 desc = irq_desc_legacy;
diff --git a/kernel/softirq.c b/kernel/softirq.c
index bdbe9de9cd8d..0365b4899a3d 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -795,6 +795,11 @@ int __init __weak early_irq_init(void)
795 return 0; 795 return 0;
796} 796}
797 797
798int __init __weak arch_probe_nr_irqs(void)
799{
800 return 0;
801}
802
798int __init __weak arch_early_irq_init(void) 803int __init __weak arch_early_irq_init(void)
799{ 804{
800 return 0; 805 return 0;