@@ -51,7 +51,7 @@ static noinline void __up(struct semaphore *sem);
51
51
* Use of this function is deprecated, please use down_interruptible() or
52
52
* down_killable() instead.
53
53
*/
54
- void down (struct semaphore * sem )
54
+ void __sched down (struct semaphore * sem )
55
55
{
56
56
unsigned long flags ;
57
57
@@ -74,7 +74,7 @@ EXPORT_SYMBOL(down);
74
74
* If the sleep is interrupted by a signal, this function will return -EINTR.
75
75
* If the semaphore is successfully acquired, this function returns 0.
76
76
*/
77
- int down_interruptible (struct semaphore * sem )
77
+ int __sched down_interruptible (struct semaphore * sem )
78
78
{
79
79
unsigned long flags ;
80
80
int result = 0 ;
@@ -101,7 +101,7 @@ EXPORT_SYMBOL(down_interruptible);
101
101
* -EINTR. If the semaphore is successfully acquired, this function returns
102
102
* 0.
103
103
*/
104
- int down_killable (struct semaphore * sem )
104
+ int __sched down_killable (struct semaphore * sem )
105
105
{
106
106
unsigned long flags ;
107
107
int result = 0 ;
@@ -131,7 +131,7 @@ EXPORT_SYMBOL(down_killable);
131
131
* Unlike mutex_trylock, this function can be used from interrupt context,
132
132
* and the semaphore can be released by any task or interrupt.
133
133
*/
134
- int down_trylock (struct semaphore * sem )
134
+ int __sched down_trylock (struct semaphore * sem )
135
135
{
136
136
unsigned long flags ;
137
137
int count ;
@@ -156,7 +156,7 @@ EXPORT_SYMBOL(down_trylock);
156
156
* If the semaphore is not released within the specified number of jiffies,
157
157
* this function returns -ETIME. It returns 0 if the semaphore was acquired.
158
158
*/
159
- int down_timeout (struct semaphore * sem , long timeout )
159
+ int __sched down_timeout (struct semaphore * sem , long timeout )
160
160
{
161
161
unsigned long flags ;
162
162
int result = 0 ;
@@ -180,7 +180,7 @@ EXPORT_SYMBOL(down_timeout);
180
180
* Release the semaphore. Unlike mutexes, up() may be called from any
181
181
* context and even by tasks which have never called down().
182
182
*/
183
- void up (struct semaphore * sem )
183
+ void __sched up (struct semaphore * sem )
184
184
{
185
185
unsigned long flags ;
186
186
0 commit comments