Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 9 Jun 2002 10:22:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 9 Jun 2002 10:22:15 -0400 Received: from p50887457.dip.t-dialin.net ([80.136.116.87]:4305 "EHLO hawkeye.luckynet.adm") by vger.kernel.org with ESMTP id ; Sun, 9 Jun 2002 10:22:15 -0400 Date: Sun, 9 Jun 2002 08:22:06 -0600 (MDT) From: Lightweight patch manager X-X-Sender: patch@hawkeye.luckynet.adm To: Robert Love cc: Linux Kernel Mailing List , Ingo Molnar Subject: [PATCH][2.5] make kernel scheduler use list_move_tail (1 occ) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This makes the kernel scheduler use list_move_tail instead of more code --- linus-2.5/kernel/sched.c Sun Jun 9 04:17:27 2002 +++ thunder-2.5/kernel/sched.c Sun Jun 9 06:58:51 2002 @@ -1360,8 +1360,7 @@ * then just requeue the task to the end of the runqueue: */ if (likely(current->prio == MAX_PRIO-1 || rt_task(current))) { - list_del(¤t->run_list); - list_add_tail(¤t->run_list, array->queue + current->prio); + list_move_tail(¤t->run_list, array->queue + current->prio); } else { list_del(¤t->run_list); if (list_empty(array->queue + current->prio)) -- Lightweight patch manager using pine. If you have any objections, tell me. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/