[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1494318849-6733-1-git-send-email-vincent.legoll@gmail.com>
Date: Tue, 9 May 2017 10:34:09 +0200
From: Vincent Legoll <vincent.legoll@...il.com>
To: tglx@...utronix.de, linux-kernel@...r.kernel.org
Cc: Vincent Legoll <vincent.legoll@...il.com>
Subject: [PATCH] genirq: Tell that early_irq_init() is printing the nr of preallocated irqs
The early_irq_init() function was not telling what all the displayed
information is.
- Add some missing whitespace & commas for easier reading
- Tell that the third number is the number of preallocated irqs
returned by arch_probe_nr_irqs()
- Also cover !CONFIG_SPARSE_IRQ case
Signed-off-by: Vincent Legoll <vincent.legoll@...il.com>
---
kernel/irq/irqdesc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 00bb0ae..fb53da0 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -480,7 +480,8 @@ int __init early_irq_init(void)
/* Let arch update nr_irqs and return the nr of preallocated irqs */
initcnt = arch_probe_nr_irqs();
- printk(KERN_INFO "NR_IRQS:%d nr_irqs:%d %d\n", NR_IRQS, nr_irqs, initcnt);
+ printk(KERN_INFO "NR_IRQS: %d, nr_irqs: %d, nr of preallocated irqs: %d\n",
+ NR_IRQS, nr_irqs, initcnt);
if (WARN_ON(nr_irqs > IRQ_BITMAP_BITS))
nr_irqs = IRQ_BITMAP_BITS;
@@ -516,7 +517,7 @@ int __init early_irq_init(void)
init_irq_default_affinity();
- printk(KERN_INFO "NR_IRQS:%d\n", NR_IRQS);
+ printk(KERN_INFO "NR_IRQS: %d\n", NR_IRQS);
desc = irq_desc;
count = ARRAY_SIZE(irq_desc);
--
2.7.4
Powered by blists - more mailing lists