Skip to content

Commit f90ff31

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
LoongArch: Switch to irq_set_nr_irqs()
Use the irq_set_nr_irqs() function instead of the global variable 'nr_irqs'. Prepare for changing 'nr_irqs' from an exported global variable into a variable with file scope. Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent bc03315 commit f90ff31

File tree

1 file changed

+2
-2
lines changed
  • arch/loongarch/kernel

1 file changed

+2
-2
lines changed

arch/loongarch/kernel/irq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ int __init arch_probe_nr_irqs(void)
9292
int nr_io_pics = bitmap_weight(loongson_sysconf.cores_io_master, NR_CPUS);
9393

9494
if (!cpu_has_avecint)
95-
nr_irqs = (64 + NR_VECTORS * nr_io_pics);
95+
irq_set_nr_irqs(64 + NR_VECTORS * nr_io_pics);
9696
else
97-
nr_irqs = (64 + NR_VECTORS * (nr_cpu_ids + nr_io_pics));
97+
irq_set_nr_irqs(64 + NR_VECTORS * (nr_cpu_ids + nr_io_pics));
9898

9999
return NR_IRQS_LEGACY;
100100
}

0 commit comments

Comments
 (0)