aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJiang Liu <[email protected]>2013-04-12 05:44:15 +0000
committerBjorn Helgaas <[email protected]>2013-04-12 14:57:02 -0600
commit1e89d268e7a83d8388d4d09d3f2089ced72cc15f (patch)
tree7a0c92f6f5c8975612125ef8ff769656a2ab8aa4 /tools/perf/scripts/python/event_analyzing_sample.py
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff)
PCI: When removing bus, always remove legacy files & unregister
We always call device_register() and pci_create_legacy_files() for a new bus before handing out the "struct pci_bus *". Therefore, there's no possiblity of removing the bus with pci_remove_bus() before those calls have been made, so we don't need to check "bus->is_added" before calling pci_remove_legacy_files() and device_unregister(). [bhelgaas: changelog] Signed-off-by: Jiang Liu <[email protected]> Signed-off-by: Yijing Wang <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Yinghai Lu <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Cc: Toshi Kani <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions