Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753536AbZK3JZd (ORCPT ); Mon, 30 Nov 2009 04:25:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752649AbZK3JZc (ORCPT ); Mon, 30 Nov 2009 04:25:32 -0500 Received: from mtagate1.de.ibm.com ([195.212.17.161]:51997 "EHLO mtagate1.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557AbZK3JZb (ORCPT ); Mon, 30 Nov 2009 04:25:31 -0500 From: Christian Borntraeger Organization: IBM To: Avi Kivity Subject: Re: [PATCH] sched: Optimize branch hint in context_switch() Date: Mon, 30 Nov 2009 10:25:36 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.32-rc8-self-00011-ga8a8a66; KDE/4.3.2; i686; ; ) Cc: Peter Zijlstra , Tim Blechmann , linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner References: <4B1262AC.8000903@klingt.org> <1259508050.13695.160.camel@laptop> <4B129277.5050000@redhat.com> In-Reply-To: <4B129277.5050000@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200911301025.36133.borntraeger@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 630 Lines: 17 Am Sonntag 29 November 2009 16:25:43 schrieb Avi Kivity: > These should be documented then to avoid patches removing them: > > #define slowpath(x) unlikely(x) > > if (slowpath(condition)) > expensive_operation(); Neat. If we also modify the likelyhood tracer to __not__ check the slowpath annotation by default this really looks like a good idea. Christian -- 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/