Re: [RFC: 2.6 patch] kernel/sched.c: remove two unused functions

From: Andrew Morton
Date: Sat May 14 2005 - 00:37:29 EST


Adrian Bunk <bunk@xxxxxxxxx> wrote:
>
> This patch removes the unused functions wait_for_completion_timeout and
> wait_for_completion_interruptible_timeout.
>
> Is any usage for them planned or is this patch OK?
>

>From the changelog for the patch which added these functions:



Adds 3 new completion API calls, which are a straightforward extension of
the current APIs:

int wait_for_completion_interruptible(struct completion *x);
unsigned long wait_for_completion_timeout(struct completion *x,
unsigned long timeout);
unsigned long wait_for_completion_interruptible_timeout(
struct completion *x, unsigned long timeout);

This enables the conversion of more semaphore-using code to completions.
There is code that cannot be converted right now (and is forced to use
semaphores) because these primitives are missing. Thomas Gleixner has a
bunch of patches to make use of them.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/