Re: [uPATCH] sched.c change; snappy_response++

MOLNAR Ingo (mingo@chiara.csoma.elte.hu)
Tue, 10 Mar 1998 22:01:36 +0100 (CET)


On Tue, 10 Mar 1998, Rik van Riel wrote:

> > - /* .. and a slight advantage to the current process */
> > - if (p == prev)
> > + /* .. and a slight advantage to the current thread */
> > + if (p->mm == prev->mm)
> > weight += 1;
> > }
>
> But why remove the if (p == prev) test?
> It seems valid to me...

if p==prev then the p->mm==prev->mm condition will be always true ...

-- mingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu