diff options
author | Matthias Kaehlcke <matthias.kaehlcke@gmail.com> | 2007-05-23 17:19:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 19:09:01 -0400 |
commit | 11048dcf333c414f237bb713c422e68f67b115a3 (patch) | |
tree | 3a42905f9b946e5614568568c4ee1f8f54f54e86 /drivers/base/power/power.h | |
parent | 9f3f776bd9e3d52f0204db1df0914b50d6a2372e (diff) |
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); | |||
14 | /* | 14 | /* |
15 | * Used to synchronize global power management operations. | 15 | * Used to synchronize global power management operations. |
16 | */ | 16 | */ |
17 | extern struct semaphore dpm_sem; | 17 | extern struct mutex dpm_mtx; |
18 | 18 | ||
19 | /* | 19 | /* |
20 | * Used to serialize changes to the dpm_* lists. | 20 | * Used to serialize changes to the dpm_* lists. |
21 | */ | 21 | */ |
22 | extern struct semaphore dpm_list_sem; | 22 | extern struct mutex dpm_list_mtx; |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * The PM lists. | 25 | * The PM lists. |