1
linux/drivers/base/power
mochel@digitalimplant.org af70316af1 [PATCH] Add a semaphore to struct device to synchronize calls to its driver.
This adds a per-device semaphore that is taken before every call from the core to a
driver method. This prevents e.g. simultaneous calls to the ->suspend() or ->resume()
and ->probe() or ->release(), potentially saving a whole lot of headaches.

It also moves us a step closer to removing the bus rwsem, since it protects the fields
in struct device that are modified by the core.

Signed-off-by: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-06-20 15:15:12 -07:00
..
main.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
power.h [PATCH] Driver Core: remove driver model detach_state 2005-05-17 14:54:55 -07:00
resume.c [PATCH] Add a semaphore to struct device to synchronize calls to its driver. 2005-06-20 15:15:12 -07:00
runtime.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
shutdown.c [PATCH] Driver Core: remove driver model detach_state 2005-05-17 14:54:55 -07:00
suspend.c [PATCH] Add a semaphore to struct device to synchronize calls to its driver. 2005-06-20 15:15:12 -07:00
sysfs.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00