Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 10 Jul 2002 05:51:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 10 Jul 2002 05:51:13 -0400 Received: from mx2.elte.hu ([157.181.151.9]:62942 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Wed, 10 Jul 2002 05:51:12 -0400 Date: Thu, 11 Jul 2002 11:52:38 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Erich Focht Cc: linux-kernel , linux-ia64 Subject: Re: O(1) scheduler "complex" macros In-Reply-To: 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: 369 Lines: 13 the correct macro is: #define task_running(rq, p) \ (((rq)->curr == (p)) || spin_is_locked(&(p)->switch_lock)) 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/