Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759536AbXEaWde (ORCPT ); Thu, 31 May 2007 18:33:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753312AbXEaWd0 (ORCPT ); Thu, 31 May 2007 18:33:26 -0400 Received: from one.firstfloor.org ([213.235.205.2]:58983 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753165AbXEaWdZ (ORCPT ); Thu, 31 May 2007 18:33:25 -0400 Date: Fri, 1 Jun 2007 00:33:22 +0200 From: Andi Kleen To: Mathieu Desnoyers Cc: Andi Kleen , akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [patch 9/9] Scheduler profiling - Use conditional calls Message-ID: <20070531223322.GC7217@one.firstfloor.org> References: <20070530140025.917261793@polymtl.ca> <20070530140229.811672406@polymtl.ca> <20070531220742.GG904@Krystal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070531220742.GG904@Krystal> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 981 Lines: 22 > I see your point, but there is a level of control on the branch I would > lack by doing so: the ability to put the call in either the if or else > branch. It is an optimization on i386. What does it optimize exactly? > Also, I live in the expectation that, someday, the gcc guys will be nice > enough to add some kind of support for a nop-based jump that would > require code patching to put a jump instead. If it ever happens, my > macro could evolve into this for newer compiler versions, which I could > not do with the if() statement you are proposing. If that ever happens we couldn't use it anyways because Linux still has to support old compilers for a long time. And when those are dropped the code could be updated. -Andi - 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/