From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756827Ab1HEPOk (ORCPT ); Fri, 5 Aug 2011 11:14:40 -0400 Received: from merlin.infradead.org ([205.233.59.134]:57993 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753817Ab1HEPOi convert rfc822-to-8bit (ORCPT ); Fri, 5 Aug 2011 11:14:38 -0400 Subject: Re: [RFT][patch 17/18] sched: use jump labels to reduce overhead when bandwidth control is inactive From: Peter Zijlstra To: Richard Henderson Cc: Jason Baron , Paul Turner , linux-kernel@vger.kernel.org, Bharata B Rao , Dhaval Giani , Balbir Singh , Vaidyanathan Srinivasan , Srivatsa Vaddagiri , Kamalesh Babulal , Hidetoshi Seto , Ingo Molnar , Pavel Emelyanov Date: Fri, 05 Aug 2011 17:14:14 +0200 In-Reply-To: <4E3C0813.5050303@redhat.com> References: <20110722003211.GA2807@redhat.com> <20110722011747.GB2807@redhat.com> <20110727215816.GA2515@redhat.com> <1312533036.10852.34.camel@twins> <4E3C0813.5050303@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.0.2- Message-ID: <1312557254.28695.12.camel@twins> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2011-08-05 at 08:11 -0700, Richard Henderson wrote: > On 08/05/2011 01:30 AM, Peter Zijlstra wrote: > > OK, so _WHY_ does that make a difference and will a next version of > > gnu-binutils not mess that up? > > The Why is micro-architectual, and I can't answer that. > > But ld will never re-order the files as given on the command-line. > There are too many functions and tables that are constructed > piece-wise from input sections; re-ordering them would change > the semantics of the program. Right, so I was wondering about things like whole-program-optimization passes at link time. Since I've no clue why the proposed patch does what it does, its hard to say what invariant is needed to be kept.