Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964857AbVLSQn6 (ORCPT ); Mon, 19 Dec 2005 11:43:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964851AbVLSQn6 (ORCPT ); Mon, 19 Dec 2005 11:43:58 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:32712 "EHLO mx3.mail.elte.hu") by vger.kernel.org with ESMTP id S964857AbVLSQn4 (ORCPT ); Mon, 19 Dec 2005 11:43:56 -0500 Date: Mon, 19 Dec 2005 17:43:19 +0100 From: Ingo Molnar To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Andrew Morton , Arjan van de Ven , Alan Cox , Christoph Hellwig , Andi Kleen , David Howells , Alexander Viro , Oleg Nesterov , Paul Jackson Subject: Re: [patch 05/15] Generic Mutex Subsystem, mutex-core.patch Message-ID: <20051219164319.GH8160@elte.hu> References: <20051219013718.GA28038@elte.hu> <1134969166.13138.240.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1134969166.13138.240.camel@localhost.localdomain> User-Agent: Mutt/1.4.2.1i X-ELTE-SpamScore: 0.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=0.0 required=5.9 tests=AWL autolearn=no SpamAssassin version=3.0.3 0.0 AWL AWL: From: address is in the auto white-list X-ELTE-VirusStatus: clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 688 Lines: 23 * Steven Rostedt wrote: > The unlikely below is only for the non MUTEX_LOCKLESS_FASTPATH case. > Maybe have a define for the unlikely? > > #ifdef MUTEX_LOCKLESS_FASTPATH > # define UNLIKELY_SLOW(x) x > #else > # define UNLIKELY_SLOW(x) unlikely(x) > #endif > > + if (unlikely(!list_empty(&lock->wait_list))) > > + __mutex_wakeup_waiter(lock __IP__); i'll rather eliminate the unlikely(). 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/