Received: by 10.192.165.156 with SMTP id m28csp571910imm; Wed, 11 Apr 2018 04:02:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/jSHCPrvqWOXN6xiqYVGN1uuLdBEYHqo9MZG4N+QEuOEDJdEa02BN/AnwAfXUFOFrSdrRJ X-Received: by 2002:a17:902:bd8d:: with SMTP id q13-v6mr1919652pls.330.1523444555007; Wed, 11 Apr 2018 04:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523444554; cv=none; d=google.com; s=arc-20160816; b=R8a9dtBiJf5RQBI7UO/mC5SPZWMx6jZUmOVkRsn2gwDD8pDWOKIKEnWfglm+YzPfLi axbn/xE4n2jqZf/ES77gAFWUgPGLobgYxN/7n9ihGRymWrwvxtF8Pg4/9FwdEAGVZdgQ dKcbOqouE/QL2IRNKiiharvjgaK3jttgVIm3Df97LSGJP0FnaV/7qTs9i8Km6gMwLaAP NlnaKkrohAZIk02+IomgIXwejYU5RFjIIG4ZRP1jVbewRlrIaQyKtb6E2QuJBEZNrHWi yvOwoo7Vxkf//H432ia1g5/sf6N1bBXntbC3aJsw3zyvNFtiQN9mvTTDdCb70gSUPA9e uBIw== 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:dkim-signature:arc-authentication-results; bh=XK3JtHWqM1Cnx8TsfWbAYjzOF1PCFRUX9obGSl/2PPM=; b=tOrbVcMPjgBXqFJthHOVAgTc/lTSXIsPCUmxQLZzRL7g0Q1iCqsqetK+h39CJ1Iavm UQ1vIUQ4wVijQ7sNYqyjNiqY8odBhGUkP6W1z43IXHPG024Ajy9U3sHjXM5JnqW6iJx+ qKGxeyCbrE2xIzr69oIQRTedwBjnlyaaL6u5LPoGiCI8VzAkfpnbkUIjGOKsD/5MKLuv YI2Cz3nK9Xq4ZniKpCF+RZNelRnZuOsChXL4K/5fR+TtGlPQcwZqIeIFJhogqKbBj5h/ uds95BqmF8MRdI0BJUgdA7hGV4auAoDC9M7fzI3p9Z4HZERvIkyIvB8hEZ7dNL/aWGqz zDlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=IFMJvUHJ; 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 q10si599961pgf.524.2018.04.11.04.01.56; Wed, 11 Apr 2018 04:02:34 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=IFMJvUHJ; 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 S1752598AbeDKK6r (ORCPT + 99 others); Wed, 11 Apr 2018 06:58:47 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45616 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751921AbeDKK6k (ORCPT ); Wed, 11 Apr 2018 06:58:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XK3JtHWqM1Cnx8TsfWbAYjzOF1PCFRUX9obGSl/2PPM=; b=IFMJvUHJesWNUFo1aWv179VOC DlY5tfEUkX4lxNVv7MzALl4mM0jtLxAFcQQ6I0Xxsego3P7RvZFl5uxhJhjUvAx1JxyH7y+jSUism X1ko864NedAEkL+yI20dzeHY5RC2SxhJETAE3b5rMRtLhwIreVAeF+vWTjzre2yE+NohrjdfvQqug K0viBsswMnACAlbKsgjN/Lv56NJY+PMqrGNq1WIw+7dUMcsDFHxt6KD/KNlveQgY7Sf0k4XNlJIsJ mVs1EBmXOGz+1twW2x9tuSfWt2DsmIgdZuk0LWG5n4mx8Vf3TDjU6InX8rRKabpy4ehJzIXAMMV0u I08N86CwQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f6DSP-0002g9-Lq; Wed, 11 Apr 2018 10:58:30 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6C677202A4A09; Wed, 11 Apr 2018 12:58:28 +0200 (CEST) Date: Wed, 11 Apr 2018 12:58:28 +0200 From: Peter Zijlstra To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , "Rafael J . Wysocki" , Viresh Kumar , Joel Fernandes , Steve Muckle , Juri Lelli , Dietmar Eggemann Subject: Re: [PATCH v2] cpufreq/schedutil: Cleanup, document and fix iowait boost Message-ID: <20180411105828.GL4082@hirez.programming.kicks-ass.net> References: <20180410155931.31973-1-patrick.bellasi@arm.com> <20180410193708.GE4043@hirez.programming.kicks-ass.net> <20180411104445.GM14248@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411104445.GM14248@e110439-lin> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 11, 2018 at 11:44:45AM +0100, Patrick Bellasi wrote: > > > - sugov_set_iowait_boost: is now in charge only to set/increase the IO > > > wait boost, every time a task wakes up from an IO wait. > > > > > > - sugov_iowait_boost: is now in charge to reset/reduce the IO wait > > > boost, every time a sugov update is triggered, as well as > > > to (eventually) enforce the currently required IO boost value. > > > > I'm not sold on those function names; feels like we can do better, > > although I'm struggling to come up with anything sensible just now. > > What about something like: > > sugov_iowait_init() > since here we are mainly initializing the iowait boost > > sugov_iowait_boost() > since here we are mainly applying the proper boost to each cpu > > Although they are not really so different... How about: sugov_iowait_boost() -- does the actual impulse/boost sugov_iowait_apply() -- applies the boost state ?