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

Ingo Molnar
2004-08-16T05:05:00Z

* Lee Revell <rlrevell@joe-job.com> 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