Don't write automatic IRQ entries for disabled devices

Change-Id: Ib3dae4f0957a2e0057c0dffb5eb9904af20dcd40
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/1460
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Sven Schnelle 2012-08-20 11:17:52 +02:00 committed by Alexandru Gagniuc
parent 7ecfa30733
commit 64c40ddeec
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ unsigned long __attribute__((weak)) write_smp_table(unsigned long addr)
for(dev = all_devices; dev; dev = dev->next) { for(dev = all_devices; dev; dev = dev->next) {
if (dev->path.type != DEVICE_PATH_PCI) if (dev->path.type != DEVICE_PATH_PCI || !dev->enabled)
continue; continue;
pin = (dev->path.pci.devfn & 7) % 4; pin = (dev->path.pci.devfn & 7) % 4;