From d245619060965c2f379fadf6103e7b69a2d1e951 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Fri, 7 Sep 2012 14:28:59 +0200 Subject: 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. --- include/linux/completion.h | 1 - kernel/sched.c | 11 ----------- 2 files changed, 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); extern void complete(struct completion *); extern void complete_all(struct completion *); -extern void complete_n(struct completion *, int n); /** * 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) } EXPORT_SYMBOL(complete_all); -void complete_n(struct completion *x, int n) -{ - unsigned long flags; - - spin_lock_irqsave(&x->wait.lock, flags); - x->done += n; - __wake_up_common(&x->wait, TASK_NORMAL, n, 0, NULL); - spin_unlock_irqrestore(&x->wait.lock, flags); -} -EXPORT_SYMBOL(complete_n); - static inline long __sched do_wait_for_common(struct completion *x, long timeout, int state) { -- cgit v1.2.2