Re: [PATCH] little schedule() cleanup: use cached current value

From: Ingo Molnar
Date: Tue Nov 09 2004 - 09:32:02 EST



* Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> Ingo Molnar wrote:
>
> > nack. We switch the kernel stack in switch_to() so 'next' here
> > is the old task we switched to before we went off the CPU.
>
> yes, sorry. here is corrected patch.
>
> schedule() can use prev instead of get_current().
>
> Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

Acked-by: Ingo Molnar <mingo@xxxxxxx>

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/