summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAlex Chiang <achiang@hp.com>2009-03-31 17:24:02 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-06-11 21:04:14 +0200
commitb019ee679afde950f2d01b1af0530453aa60af3f (patch)
treed6f2cea2323cbd0b8b403ab59eec9f527a0ab026 /init
parentPCI Hotplug: cpqphp: refactor cpqhp_save_config (diff)
downloadlinux-b019ee679afde950f2d01b1af0530453aa60af3f.tar.xz
linux-b019ee679afde950f2d01b1af0530453aa60af3f.zip
PCI Hotplug: cpqphp: clean up accesses to pcibios_get_irq_routing_table()
Instead of making multiple calls to pcibios_get_irq_routing_table, let's just do it once and save the answer. The reason we were making multiple calls is because we liked to calculate its length and perform some loop over it. Instead of open-coding the length calculation every time, provide it in an inline helper function. Finally, since pci_print_IRQ_route() is used only for debug, let's only do it when cpqhp_debug is set. Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions