Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265518AbTFSS42 (ORCPT ); Thu, 19 Jun 2003 14:56:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265900AbTFSS42 (ORCPT ); Thu, 19 Jun 2003 14:56:28 -0400 Received: from mx1.elte.hu ([157.181.1.137]:962 "EHLO mx1.elte.hu") by vger.kernel.org with ESMTP id S265518AbTFSS41 (ORCPT ); Thu, 19 Jun 2003 14:56:27 -0400 Date: Thu, 19 Jun 2003 21:09:46 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Robert Love Cc: Joe Korty , george anzinger , "Perez-Gonzalez, Inaky" , "'Andrew Morton'" , "'linux-kernel@vger.kernel.org'" , "Li, Adam" Subject: Re: [patch] setscheduler fix In-Reply-To: <1056044732.8770.39.camel@localhost> 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 Content-Length: 466 Lines: 19 On 19 Jun 2003, Robert Love wrote: > + if (rq->curr == p) { > + if (p->prio > oldprio) > + resched_task(rq->curr); > + } else if (p->prio < rq->curr->prio) > + resched_task(rq->curr); > + } looks good. Ingo - 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/