diff options
Diffstat (limited to 'include/linux/semaphore.h')
| -rw-r--r-- | include/linux/semaphore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h index 39fa04966aa8..dc368b8ce215 100644 --- a/include/linux/semaphore.h +++ b/include/linux/semaphore.h | |||
| @@ -14,14 +14,14 @@ | |||
| 14 | 14 | ||
| 15 | /* Please don't access any members of this structure directly */ | 15 | /* Please don't access any members of this structure directly */ |
| 16 | struct semaphore { | 16 | struct semaphore { |
| 17 | spinlock_t lock; | 17 | raw_spinlock_t lock; |
| 18 | unsigned int count; | 18 | unsigned int count; |
| 19 | struct list_head wait_list; | 19 | struct list_head wait_list; |
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | #define __SEMAPHORE_INITIALIZER(name, n) \ | 22 | #define __SEMAPHORE_INITIALIZER(name, n) \ |
| 23 | { \ | 23 | { \ |
| 24 | .lock = __SPIN_LOCK_UNLOCKED((name).lock), \ | 24 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \ |
| 25 | .count = n, \ | 25 | .count = n, \ |
| 26 | .wait_list = LIST_HEAD_INIT((name).wait_list), \ | 26 | .wait_list = LIST_HEAD_INIT((name).wait_list), \ |
| 27 | } | 27 | } |
