diff options
author | 2012-08-23 15:45:47 +0800 | |
---|---|---|
committer | 2012-09-10 16:23:29 -0600 | |
commit | e9bf1040f649d89db3c2e060d1b0b56665a4fb93 (patch) | |
tree | e57bdedeaa94fc087b9e6fef82d270bc1bf03546 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: Use pci_device_id on stack for pci_get_subsys/class() to avoid kmalloc (diff) | |
download | linux-dev-e9bf1040f649d89db3c2e060d1b0b56665a4fb93.tar.xz linux-dev-e9bf1040f649d89db3c2e060d1b0b56665a4fb93.zip |
PCI: Remove the obsolete no_pci_devices() check
In function pci_get_subsys() there is a check:
/*
* pci_find_subsys() can be called on the ide_setup() path,
* super-early in boot. But the down_read() will enable local
* interrupts, which can cause some machines to crash. So here we
* detect and flag that situation and bail out early.
*/
if (unlikely(no_pci_devices()))
return NULL;
But there is no ide_setup() now, and no down_read() either, which
makes the check obsolete. So remove it.
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions