Paul Bolle 678301ecad x86, ioapic: Don't warn about non-existing IOAPICs if we have none
mp_find_ioapic() prints errors like:

    ERROR: Unable to locate IOAPIC for GSI 13

if it can't find the IOAPIC that manages that specific GSI. I
see errors like that at every boot of a laptop that apparently
doesn't have any IOAPICs.

But if there are no IOAPICs it doesn't seem to be an error that
none can be found. A solution that gets rid of this message is
to directly return if nr_ioapics (still) is zero. (But keep
returning -1 in that case, so nothing breaks from this change.)

The call chain that generates this error is:

pnpacpi_allocated_resource()
    case ACPI_RESOURCE_TYPE_IRQ:
        pnpacpi_parse_allocated_irqresource()
            acpi_get_override_irq()
                 mp_find_ioapic()

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-02-15 04:15:04 +01:00
..
2010-08-27 11:12:29 -07:00
2010-10-26 16:52:08 -07:00
2010-07-21 11:33:27 -07:00
2009-07-19 18:27:51 +02:00
2011-01-12 11:23:16 +02:00
2010-11-12 00:45:41 +01:00
2010-07-21 21:23:51 -07:00
2010-08-27 11:12:29 -07:00
2010-09-22 16:33:03 -04:00
2011-01-07 15:08:53 +01:00
2011-01-13 17:32:39 -08:00
2010-10-27 18:03:10 -07:00
2011-01-07 15:08:53 +01:00
2009-12-09 16:28:59 -08:00
2010-03-26 11:33:57 +01:00
2011-01-13 17:32:40 -08:00
2011-01-07 15:08:53 +01:00
2011-01-13 17:32:41 -08:00
2010-10-18 10:49:34 -04:00