Browse Source

sched/swait: Remove __prepare_to_swait

There is no public user of this API, remove it.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Linus 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
Peter Zijlstra 7 years ago
parent
commit
6519750210
2 changed files with 1 additions and 2 deletions
  1. 0 1
      include/linux/swait.h
  2. 1 1
      kernel/sched/swait.c

+ 0 - 1
include/linux/swait.h

@@ -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);
 
 

+ 1 - 1
kernel/sched/swait.c

@@ -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))