summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-acpi.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-13 23:27:26 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-23 04:00:28 +0200
commitff181e5a4f6b536e5f3f1601cd5c54e792cd9abc (patch)
treea2f3addfd9b74e8678dfe6001db2e884cac0b29b /drivers/pci/pci-acpi.c
parenta1d0abcea845730c4ff2f47897e28c2f11c79d4f (diff)
downloadop-kernel-dev-ff181e5a4f6b536e5f3f1601cd5c54e792cd9abc.zip
op-kernel-dev-ff181e5a4f6b536e5f3f1601cd5c54e792cd9abc.tar.gz
ACPI / hotplug / PCI: Clean up bridge_mutex usage
Do not acquire bridge_mutex around the addition of a slot to its bridge's list of slots and arount the addition of a function to its slot's list of functions, because that doesn't help anything right now (those lists are walked without any locking anyway). However, acquire bridge_mutex around the list walk in acpiphp_remove_slots() and use list_for_each_entry() there, because we terminate the walk as soon as we find the first matching entry. This prevents that list walk from colliding with bridge addition and removal. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/pci/pci-acpi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud