Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1637970

[PATCH] genirq: Tell that early_irq_init() is printing the nr of preallocated irqs

From Vincent Legoll <vincent.legoll@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] genirq: Tell that early_irq_init() is printing the nr of preallocated irqs
Date 2017-05-09 10:30 +0200
Message-ID <tF8GR-7BJ-9@gated-at.bofh.it> (permalink)
References <tF849-77W-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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()

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 kernel/irq/irqdesc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 00bb0ae..cd22d85 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;
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Fix NR_IRQS printk() Vincent Legoll <vincent.legoll@gmail.com> - 2017-05-03 12:10 +0200
  Re: [PATCH] Fix NR_IRQS printk() Thomas Gleixner <tglx@linutronix.de> - 2017-05-09 09:10 +0200
    Re: [PATCH] Fix NR_IRQS printk() Vincent Legoll <vincent.legoll@gmail.com> - 2017-05-09 09:50 +0200
      [PATCH] genirq: Tell that early_irq_init() is printing the nr of preallocated irqs Vincent Legoll <vincent.legoll@gmail.com> - 2017-05-09 10:30 +0200
        [PATCH] genirq: Tell that early_irq_init() is printing the nr of preallocated irqs Vincent Legoll <vincent.legoll@gmail.com> - 2017-05-09 10:40 +0200

csiph-web