Re: Remove duplicate code from sched_fair.c

From: Ingo Molnar
Date: Fri Feb 22 2008 - 04:41:13 EST



* Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:

> yield_task_fair has some duplicate code, that can be replaced with
> rb_last(). This code reuses rb_next and removes the duplicate code. As
> a side effect, we don't do an rb_entry for each node as we walk along
> the path.

thanks, applied.

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/