Commit b5302490 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] use new list macro in sched.c

The attached patch makes use of the new list_move_tail macro in 2.5 as
needed in sched.c, replacing a list_del and list_add_tail combo with the
optimized list_move_tail.
parent e4e4cd48
......@@ -1430,8 +1430,7 @@ asmlinkage long sys_sched_yield(void)
} else
current->time_slice--;
} else if (unlikely(rt_task(current))) {
list_del(&current->run_list);
list_add_tail(&current->run_list, array->queue + current->prio);
list_move_tail(&current->run_list, array->queue + current->prio);
} else {
list_del(&current->run_list);
if (list_empty(array->queue + current->prio))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment