提交 65197502 编写于 作者: P Peter Zijlstra 提交者: Thomas Gleixner

sched/swait: Remove __prepare_to_swait

There is no public user of this API, remove it.
Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
Cc: bigeasy@linutronix.de
Cc: oleg@redhat.com
Cc: paulmck@linux.vnet.ibm.com
Cc: pbonzini@redhat.com
Link: https://lkml.kernel.org/r/20180612083909.157076812@infradead.org
上级 9ffc59d5
...@@ -161,7 +161,6 @@ extern void swake_up(struct swait_queue_head *q); ...@@ -161,7 +161,6 @@ extern void swake_up(struct swait_queue_head *q);
extern void swake_up_all(struct swait_queue_head *q); extern void swake_up_all(struct swait_queue_head *q);
extern void swake_up_locked(struct swait_queue_head *q); extern void swake_up_locked(struct swait_queue_head *q);
extern void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait);
extern void prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait, int state); extern void prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait, int state);
extern long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state); extern long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state);
......
...@@ -69,7 +69,7 @@ void swake_up_all(struct swait_queue_head *q) ...@@ -69,7 +69,7 @@ void swake_up_all(struct swait_queue_head *q)
} }
EXPORT_SYMBOL(swake_up_all); EXPORT_SYMBOL(swake_up_all);
void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) static void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait)
{ {
wait->task = current; wait->task = current;
if (list_empty(&wait->task_list)) if (list_empty(&wait->task_list))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册