linux-stable-rt/drivers/acpi
Alex Chiang 828f37683e PCI: update pci_create_slot() to take a 'hotplug' param
Slot detection drivers can co-exist with hotplug drivers. The names
of the detected/claimed slots may be different depending on module
load order.

For legacy reasons, we need to allow hotplug drivers to override
the slot name if a detection driver is loaded first (and they find
the same slots).

Creating and overriding slot names should be an atomic operation,
otherwise you get a locking nightmare as various drivers race to
call pci_create_slot().

pci_create_slot() is already serialized by grabbing the pci_bus_sem.

We update the API and add a 'hotplug' param, which is:

	set if the caller is a hotplug driver
	NULL if the caller is a detection driver

pci_create_slot() does not actually use the 'hotplug' parameter in this
patch. A later patch will add the logic that uses it.

Cc: kristen.c.accardi@intel.com
Cc: matthew@wil.cx
Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2008-10-22 16:42:38 -07:00
..
dispatcher
events
executer
hardware
namespace
parser
resources
sleep acpi: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
tables
utilities
Kconfig acpi: Make ACPI_TOSHIBA depend on INPUT. 2008-10-12 21:22:31 -07:00
Makefile
ac.c
acpi_memhotplug.c
asus_acpi.c
battery.c x86: sysfs: kill owner field from attribute 2008-10-20 08:52:42 -07:00
bay.c
blacklist.c
bus.c
button.c
cm_sbs.c
container.c
debug.c
dock.c
ec.c
event.c
fan.c
glue.c rtc-cmos: move wake setup from ACPI glue into RTC driver 2008-10-14 16:08:21 -07:00
numa.c
osl.c
pci_bind.c
pci_irq.c
pci_link.c
pci_root.c
pci_slot.c PCI: update pci_create_slot() to take a 'hotplug' param 2008-10-22 16:42:38 -07:00
power.c
processor_core.c
processor_idle.c
processor_perflib.c
processor_thermal.c
processor_throttling.c
reboot.c
sbs.c x86: sysfs: kill owner field from attribute 2008-10-20 08:52:42 -07:00
sbshc.c
sbshc.h
scan.c
system.c x86: sysfs: kill owner field from attribute 2008-10-20 08:52:42 -07:00
tables.c
thermal.c
toshiba_acpi.c
utils.c
video.c
wmi.c