mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 23:11:27 +00:00
x86: arch_probe_nr_irqs
Impact: save RAM with large NR_CPUS, get smaller nr_irqs Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Mike Travis <travis@sgi.com>
This commit is contained in:
parent
e65e49d0f3
commit
4a046d1754
5 changed files with 26 additions and 12 deletions
|
@ -59,10 +59,6 @@ EXPORT_SYMBOL_GPL(nr_irqs);
|
|||
|
||||
#ifdef CONFIG_SPARSE_IRQ
|
||||
|
||||
#ifndef max_nr_irqs
|
||||
#define max_nr_irqs(nr_cpus) NR_IRQS
|
||||
#endif
|
||||
|
||||
static struct irq_desc irq_desc_init = {
|
||||
.irq = -1,
|
||||
.status = IRQ_DISABLED,
|
||||
|
@ -137,9 +133,8 @@ int __init early_irq_init(void)
|
|||
int legacy_count;
|
||||
int i;
|
||||
|
||||
/* initialize nr_irqs based on nr_cpu_ids */
|
||||
nr_irqs = max_nr_irqs(nr_cpu_ids);
|
||||
|
||||
/* initialize nr_irqs based on nr_cpu_ids */
|
||||
arch_probe_nr_irqs();
|
||||
printk(KERN_INFO "NR_IRQS:%d nr_irqs:%d\n", NR_IRQS, nr_irqs);
|
||||
|
||||
desc = irq_desc_legacy;
|
||||
|
|
|
@ -795,6 +795,11 @@ int __init __weak early_irq_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int __init __weak arch_probe_nr_irqs(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __init __weak arch_early_irq_init(void)
|
||||
{
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue