Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3759990imm; Fri, 25 May 2018 11:06:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpvyZvBmqkWoX43DvjKFLDebIhvjkH0SzP3vN9GmqmdjQW+oQrLOIFU26Spm4KMyiR9lvPC X-Received: by 2002:a17:902:7149:: with SMTP id u9-v6mr3600548plm.356.1527271574916; Fri, 25 May 2018 11:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527271574; cv=none; d=google.com; s=arc-20160816; b=GLZis4e9FtmwmRNUajNA/+N0tgni9d2GnUMVmc58ui09Wz89qbzNKagoE5fRgVHHS+ ls4IoXVI3C6yqk0TTTzPBULfpF5oWOg705B0SaGo0aK7cNpKsT0pcS1qnflNec2ZIhQI b43fHPAjoruAP8jICvrjLQ++geYrlafl3G9J494OQOCuN5ZQkToJvHZNGN2d7xz03+4/ XdjOCj1lJ4MreakB/WkbI6u8hrcYTKiDUk6HvSWYxr7ufc08N5wMchaI4XGGMOwuKpS9 fzSgpO0cJKqoEs/usgjI5Xeq/JTtpeMh1FydGL4jo+QAGLGLvkGfWlA5JEkCK/NwNQeb Q4yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=FrTkM8w1XiQGXuS8PeV1+XxjtuQgePMojp9749D1k7s=; b=lHNIpTqJbaB5eqeowVpYRgmykMVAAZ0q3Ik6S4WLzVoVbMRAz+DRQfyCi2gZZXed64 XTryOn1q7PjlhQCPSAHYOzqmv0clk2JQsZtHhJo9tBtb2WaZZYzg7ZaM4hMOOtLItyJ3 8u3WU/JPoidDiUYGNXN83hzzYvXrD2DnpAcaR80eBXqe1Ov8CYzTcylzdpSFakfnPcW+ WbaxYaNkdMCskQQekriuMe7edfTEoc5HVILLeJMmCJUwX+vRIRcKZB2ABFLt2zAtECEt WBaD50J9WMKkSXYZZ1zsEtKj5ud2d8hiSANCtE4P/ifNEOxYZzArBIuTmp/fAQrR+o4y RbSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p73-v6si23934038pfk.275.2018.05.25.11.05.59; Fri, 25 May 2018 11:06:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967658AbeEYSFC (ORCPT + 99 others); Fri, 25 May 2018 14:05:02 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:37670 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967452AbeEYSFB (ORCPT ); Fri, 25 May 2018 14:05:01 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7F1E01529; Fri, 25 May 2018 11:05:00 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.210.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7CC813F24A; Fri, 25 May 2018 11:04:58 -0700 (PDT) Date: Fri, 25 May 2018 19:04:55 +0100 From: Patrick Bellasi To: Quentin Perret Cc: Vincent Guittot , peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, juri.lelli@redhat.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, viresh.kumar@linaro.org, valentin.schneider@arm.com Subject: Re: [PATCH v5 01/10] sched/pelt: Move pelt related code in a dedicated file Message-ID: <20180525180455.GF30654@e110439-lin> References: <1527253951-22709-1-git-send-email-vincent.guittot@linaro.org> <1527253951-22709-2-git-send-email-vincent.guittot@linaro.org> <20180525142648.GC15173@e108498-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180525142648.GC15173@e108498-lin.cambridge.arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-May 15:26, Quentin Perret wrote: > And also, I understand these functions are large, but if we _really_ > want to inline them even though they're big, why not putting them in > sched-pelt.h ? Had the same tought at first... but then I recalled that header is generated from a script. Thus, eventually, it should be a different one. > We probably wouldn't accept that for everything, but > those PELT functions are used all over the place, including latency > sensitive code paths (e.g. task wake-up). We should better measure the overheads, if any, and check what (a modern) compiler does. Maybe some hackbench run could help on the first point. > Thanks, > Quentin -- #include Patrick Bellasi