From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433AbcESCNc (ORCPT ); Wed, 18 May 2016 22:13:32 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36565 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751441AbcESCNa (ORCPT ); Wed, 18 May 2016 22:13:30 -0400 Date: Thu, 19 May 2016 07:43:26 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Rafael Wysocki , Ingo Molnar , Peter Zijlstra , Lists linaro-kernel , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List Subject: Re: [PATCH 5/6] cpufreq: Reuse gov_attr_* macros in schedutil governor Message-ID: <20160519021326.GG24777@vireshk-i7> References: <8db591e521218af3c4b21ccc0d50606bfbde106b.1463574213.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-05-16, 23:01, Rafael J. Wysocki wrote: > On Wed, May 18, 2016 at 2:25 PM, Viresh Kumar wrote: > > These macros can be used by governors which don't use the common > > governor code present in cpufreq_governor.c and should be moved to the > > relevant header. > > > > Now that they are getting moved to the right header file, reuse them in > > schedutil governor as well (that required rename of show/store > > routines). > > I'm not sure what the benefit is to be honest. > > It adds one level of indirection to the definition of rate_limit_us, > but why is that better? I agree. I did it because I am required to use these macros for the interactive-governor and have to move them to cpufreq.h anyway. Now that we have to move them out, I thought that we should perhaps use them for schedutil as well. This would look more relevant to schedutil once it has more tunables instead of just one. -- viresh