Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 30 Jan 2002 02:54:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 30 Jan 2002 02:53:54 -0500 Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]:19884 "EHLO waldorf.cs.uni-dortmund.de") by vger.kernel.org with ESMTP id ; Wed, 30 Jan 2002 02:53:45 -0500 Message-Id: <200201291610.g0TGAvqf001302@tigger.cs.uni-dortmund.de> To: mingo@elte.hu cc: Martin Josefsson , Linus Torvalds , linux-kernel Subject: Re: [patch] [sched] yield speedup, 2.5.3-pre5 In-Reply-To: Message from Ingo Molnar of "Mon, 28 Jan 2002 20:21:56 +0100." Date: Tue, 29 Jan 2002 17:10:57 +0100 From: Horst von Brand Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ingo Molnar said: > On Mon, 28 Jan 2002, Martin Josefsson wrote: > > > > - spin_unlock_irq(&rq->lock); > > > + spin_unlock(&rq->lock); > > > I'm not an spinlock expert but shouldn't you use spin_unlock_irq() > > when it was locked with spin_lock_irq() ? > > normally yes, but in this case it's an optimization: schedule() will > disable interrupts within a few cycles, so there is no point in enabling > irqs for a short amount of time. And a short comment in the code? -- Horst von Brand http://counter.li.org # 22616 - 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/