aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-09-07 08:28:59 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-10-18 14:29:36 -0400
commitd245619060965c2f379fadf6103e7b69a2d1e951 (patch)
tree81c6020947cddd847393d440482b45d3ff6347af
parent56faaa8985834035e955a522ca451aebd420178c (diff)
Remove complete_n() API
The LITMUS^RT-specific completion API complete_n() is no longer required by the synchronous release code. Let's remove it; one less modification of a core Linux file to maintain during rebasing.
-rw-r--r--include/linux/completion.h1
-rw-r--r--kernel/sched.c11
2 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/completion.h b/include/linux/completion.h
index 9d727271c9fe..51494e6b5548 100644
--- a/include/linux/completion.h
+++ b/include/linux/completion.h
@@ -90,7 +90,6 @@ extern bool completion_done(struct completion *x);
90 90
91extern void complete(struct completion *); 91extern void complete(struct completion *);
92extern void complete_all(struct completion *); 92extern void complete_all(struct completion *);
93extern void complete_n(struct completion *, int n);
94 93
95/** 94/**
96 * INIT_COMPLETION - reinitialize a completion structure 95 * INIT_COMPLETION - reinitialize a completion structure
diff --git a/kernel/sched.c b/kernel/sched.c
index 65aba7ec564d..cbb1b5f57117 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4694,17 +4694,6 @@ void complete_all(struct completion *x)
4694} 4694}
4695EXPORT_SYMBOL(complete_all); 4695EXPORT_SYMBOL(complete_all);
4696 4696
4697void complete_n(struct completion *x, int n)
4698{
4699 unsigned long flags;
4700
4701 spin_lock_irqsave(&x->wait.lock, flags);
4702 x->done += n;
4703 __wake_up_common(&x->wait, TASK_NORMAL, n, 0, NULL);
4704 spin_unlock_irqrestore(&x->wait.lock, flags);
4705}
4706EXPORT_SYMBOL(complete_n);
4707
4708static inline long __sched 4697static inline long __sched
4709do_wait_for_common(struct completion *x, long timeout, int state) 4698do_wait_for_common(struct completion *x, long timeout, int state)
4710{ 4699{