Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265164AbUANIzQ (ORCPT ); Wed, 14 Jan 2004 03:55:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265150AbUANIzQ (ORCPT ); Wed, 14 Jan 2004 03:55:16 -0500 Received: from mx2.elte.hu ([157.181.151.9]:24705 "EHLO mx2.elte.hu") by vger.kernel.org with ESMTP id S265164AbUANIzM (ORCPT ); Wed, 14 Jan 2004 03:55:12 -0500 Date: Wed, 14 Jan 2004 09:55:57 +0100 From: Ingo Molnar To: Joe Korty Cc: rml@ximian.com, linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH] rq->curr==p not equivalent to task_running(rq,p) Message-ID: <20040114085557.GA16818@elte.hu> References: <20040113230220.GA13341@tsunami.ccur.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040113230220.GA13341@tsunami.ccur.com> User-Agent: Mutt/1.4.1i X-ELTE-SpamVersion: SpamAssassin 2.60 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 502 Lines: 16 * Joe Korty wrote: > task_running(rq,p) is equivalent to (rq->curr == p) only for some > architectures. Boot tested on i386. > - if (rq->curr == p) { > + if (task_running(rq, p)) { indeed - good catch. Andrew, please apply. 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/