diff options
author | Matthias Kaehlcke <matthias.kaehlcke@gmail.com> | 2007-05-23 14:19:41 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 16:09:01 -0700 |
commit | 11048dcf333c414f237bb713c422e68f67b115a3 (patch) | |
tree | 3a42905f9b946e5614568568c4ee1f8f54f54e86 /drivers/base/power/power.h | |
parent | 9f3f776bd9e3d52f0204db1df0914b50d6a2372e (diff) | |
download | linux-stable-11048dcf333c414f237bb713c422e68f67b115a3.tar.gz linux-stable-11048dcf333c414f237bb713c422e68f67b115a3.tar.bz2 linux-stable-11048dcf333c414f237bb713c422e68f67b115a3.zip |
Power Management: use mutexes instead of semaphores
The Power Management code uses semaphores as mutexes. Use the mutex API
instead of the (binary) semaphores.
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/power/power.h')
-rw-r--r-- | drivers/base/power/power.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index fb3d35a9e101..2760f25b3ac5 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h @@ -14,12 +14,12 @@ extern void device_shutdown(void); /* * Used to synchronize global power management operations. */ -extern struct semaphore dpm_sem; +extern struct mutex dpm_mtx; /* * Used to serialize changes to the dpm_* lists. */ -extern struct semaphore dpm_list_sem; +extern struct mutex dpm_list_mtx; /* * The PM lists. |