mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
sched: clean up sleep_on() APIs
clean up the sleep_on() APIs: - do not use fastcall - replace fragile macro magic with proper inline functions Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
9761eea851
commit
0fec171cdb
2 changed files with 52 additions and 41 deletions
|
@ -366,15 +366,15 @@ static inline void remove_wait_queue_locked(wait_queue_head_t *q,
|
|||
|
||||
/*
|
||||
* These are the old interfaces to sleep waiting for an event.
|
||||
* They are racy. DO NOT use them, use the wait_event* interfaces above.
|
||||
* We plan to remove these interfaces during 2.7.
|
||||
* They are racy. DO NOT use them, use the wait_event* interfaces above.
|
||||
* We plan to remove these interfaces.
|
||||
*/
|
||||
extern void FASTCALL(sleep_on(wait_queue_head_t *q));
|
||||
extern long FASTCALL(sleep_on_timeout(wait_queue_head_t *q,
|
||||
signed long timeout));
|
||||
extern void FASTCALL(interruptible_sleep_on(wait_queue_head_t *q));
|
||||
extern long FASTCALL(interruptible_sleep_on_timeout(wait_queue_head_t *q,
|
||||
signed long timeout));
|
||||
extern void sleep_on(wait_queue_head_t *q);
|
||||
extern long sleep_on_timeout(wait_queue_head_t *q,
|
||||
signed long timeout);
|
||||
extern void interruptible_sleep_on(wait_queue_head_t *q);
|
||||
extern long interruptible_sleep_on_timeout(wait_queue_head_t *q,
|
||||
signed long timeout);
|
||||
|
||||
/*
|
||||
* Waitqueues which are removed from the waitqueue_head at wakeup time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue