Re: Remove duplicate code from sched_fair.c

2008-02-22 Thread Ingo Molnar
* Balbir Singh <[EMAIL PROTECTED]> 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.

Remove duplicate code from sched_fair.c

2008-02-22 Thread Balbir Singh
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. Comments, flames? Description --- pick_task_entity() duplicates existi