Re: [patch] voluntary-preempt-2.6.8.1-P0

From: Ingo Molnar
Date: Mon Aug 16 2004 - 00:08:11 EST



* Lee Revell <rlrevell@xxxxxxxxxxx> wrote:

> > oh well, indeed it cannot be disabled. Then i'd suggest to return early
> > from extract_entropy(), without doing anything. That is the function
> > that seems to introduce the worst overhead.
>
> OK, I tried the quick hack of just returning 0 before taking the
> spinlock in extract_entropy, but this broke /dev/random which
> prevented me from logging in. I guess we will have to properly fake
> it here.

you should return nbytes, not zero.

Ingo
-
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/