Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932444AbdIYIPk (ORCPT ); Mon, 25 Sep 2017 04:15:40 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:40044 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753788AbdIYIPi (ORCPT ); Mon, 25 Sep 2017 04:15:38 -0400 Date: Mon, 25 Sep 2017 10:15:31 +0200 From: Peter Zijlstra To: Leo Yan Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Dietmar Eggemann , Morten Rasmussen , Chris Redpath , Joel Fernandes , Vincent Guittot Subject: Re: [PATCH 2/2] cpufreq: schedutil: consolidate capacity margin calculation Message-ID: <20170925081531.hscd5usonplwns3q@hirez.programming.kicks-ass.net> References: <1506121484-8260-1-git-send-email-leo.yan@linaro.org> <1506121484-8260-2-git-send-email-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1506121484-8260-2-git-send-email-leo.yan@linaro.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 155 Lines: 4 On Sat, Sep 23, 2017 at 07:04:44AM +0800, Leo Yan wrote: > + freq = (freq * capacity_margin / 1024) * util / max; We have SCHED_CAPACITY_SCALE for that..