summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorRobert Love <rml@tech9.net>2002-07-14 03:28:47 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-14 03:28:47 -0700
commitb530249015ed7a6ba954b9e462258a302c908f2c (patch)
treea6c35fbac6f4a643798f1897090df6d41306c622 /kernel
parente4e4cd485d1fab1ef03507847a49a0e090b35e64 (diff)
[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.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 8dfe1941e7e0..49563c9c45d9 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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))