Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 13 Jan 2002 23:48:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 13 Jan 2002 23:48:13 -0500 Received: from mnh-1-02.mv.com ([207.22.10.34]:10765 "EHLO ccure.karaya.com") by vger.kernel.org with ESMTP id ; Sun, 13 Jan 2002 23:47:59 -0500 Message-Id: <200201140449.XAA06402@ccure.karaya.com> X-Mailer: exmh version 2.0.2 To: Davide Libenzi Cc: mingo@elte.hu, linux-kernel@vger.kernel.org Subject: Re: The O(1) scheduler breaks UML In-Reply-To: Your message of "Sun, 13 Jan 2002 18:55:35 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 13 Jan 2002 23:49:16 -0500 From: Jeff Dike Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org davidel@xmailserver.org said: > Yes, this should work : > if (likely(prev != next)) { > rq->nr_switches++; > rq->curr = next; > next->cpu = prev->cpu; > spin_unlock_irq(&rq->lock); > context_switch(prev, next); > } else > spin_unlock_irq(&rq->lock); > and there's no need for barrier() and rq reload in this way. Yup, UML works much better with that. Jeff - 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/