diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-23 08:29:34 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-23 11:26:48 -0500 |
commit | c8d6b8fe72216ca47e399204b58c8be0448d4083 (patch) | |
tree | d27578f5f96c585841e5d4de31e1dae65b69a3aa /arch/x86/kernel/apic/io_apic.c | |
parent | 1444e0c9daf0d3472677efc15588b192fc2db761 (diff) |
x86: ioapic: Remove silly debug bloat in setup_IOAPIC_irqs()
This is debug code and it does not matter at all whether we print each
not connected pin in an extra line or try to be extra clever.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/apic/io_apic.c')
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index a2f2bf8ab9d..e33ccb45d0f 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -1388,9 +1388,19 @@ static struct { | |||
1388 | DECLARE_BITMAP(pin_programmed, MP_MAX_IOAPIC_PIN + 1); | 1388 | DECLARE_BITMAP(pin_programmed, MP_MAX_IOAPIC_PIN + 1); |
1389 | } mp_ioapic_routing[MAX_IO_APICS]; | 1389 | } mp_ioapic_routing[MAX_IO_APICS]; |
1390 | 1390 | ||
1391 | static bool __init io_apic_pin_not_connected(int idx, int apic_id, int pin) | ||
1392 | { | ||
1393 | if (idx != -1) | ||
1394 | return false; | ||
1395 | |||
1396 | apic_printk(APIC_VERBOSE, KERN_DEBUG " apic %d pin %d not connected\n", | ||
1397 | mp_ioapics[apic_id].apicid, pin); | ||
1398 | return true; | ||
1399 | } | ||
1400 | |||
1391 | static void __init setup_IO_APIC_irqs(void) | 1401 | static void __init setup_IO_APIC_irqs(void) |
1392 | { | 1402 | { |
1393 | int apic_id, pin, idx, irq, notcon = 0; | 1403 | int apic_id, pin, idx, irq; |
1394 | int node = cpu_to_node(0); | 1404 | int node = cpu_to_node(0); |
1395 | struct irq_cfg *cfg; | 1405 | struct irq_cfg *cfg; |
1396 | 1406 | ||
@@ -1399,22 +1409,8 @@ static void __init setup_IO_APIC_irqs(void) | |||
1399 | for (apic_id = 0; apic_id < nr_ioapics; apic_id++) | 1409 | for (apic_id = 0; apic_id < nr_ioapics; apic_id++) |
1400 | for (pin = 0; pin < nr_ioapic_registers[apic_id]; pin++) { | 1410 | for (pin = 0; pin < nr_ioapic_registers[apic_id]; pin++) { |
1401 | idx = find_irq_entry(apic_id, pin, mp_INT); | 1411 | idx = find_irq_entry(apic_id, pin, mp_INT); |
1402 | if (idx == -1) { | 1412 | if (io_apic_pin_not_connected(idx, apic_id, pin)) |
1403 | if (!notcon) { | ||
1404 | notcon = 1; | ||
1405 | apic_printk(APIC_VERBOSE, | ||
1406 | KERN_DEBUG " %d-%d", | ||
1407 | mp_ioapics[apic_id].apicid, pin); | ||
1408 | } else | ||
1409 | apic_printk(APIC_VERBOSE, " %d-%d", | ||
1410 | mp_ioapics[apic_id].apicid, pin); | ||
1411 | continue; | 1413 | continue; |
1412 | } | ||
1413 | if (notcon) { | ||
1414 | apic_printk(APIC_VERBOSE, | ||
1415 | " (apicid-pin) not connected\n"); | ||
1416 | notcon = 0; | ||
1417 | } | ||
1418 | 1414 | ||
1419 | irq = pin_2_irq(idx, apic_id, pin); | 1415 | irq = pin_2_irq(idx, apic_id, pin); |
1420 | 1416 | ||
@@ -1441,10 +1437,6 @@ static void __init setup_IO_APIC_irqs(void) | |||
1441 | setup_ioapic_irq(apic_id, pin, irq, cfg, irq_trigger(idx), | 1437 | setup_ioapic_irq(apic_id, pin, irq, cfg, irq_trigger(idx), |
1442 | irq_polarity(idx)); | 1438 | irq_polarity(idx)); |
1443 | } | 1439 | } |
1444 | |||
1445 | if (notcon) | ||
1446 | apic_printk(APIC_VERBOSE, | ||
1447 | " (apicid-pin) not connected\n"); | ||
1448 | } | 1440 | } |
1449 | 1441 | ||
1450 | /* | 1442 | /* |