From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933295AbcBRF3F (ORCPT ); Thu, 18 Feb 2016 00:29:05 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:36669 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932127AbcBRF3D (ORCPT ); Thu, 18 Feb 2016 00:29:03 -0500 Date: Thu, 18 Feb 2016 10:58:50 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List Subject: Re: [PATCH 2/12] cpufreq: governor: Move io_is_busy to struct dbs_data Message-ID: <20160218052850.GH2610@vireshk-i7> References: <2938006.67J0esUvOA@vostro.rjw.lan> <291154692.LHGJ2D0EYz@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <291154692.LHGJ2D0EYz@vostro.rjw.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-02-16, 02:20, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The io_is_busy governor tunable is only used by the ondemand governor > and is located in the ondemand-specific data structure, but it is > looked at by the common governor code that has to do ugly things to > get to that value, so move it to struct dbs_data and modify ondemand > accordingly. > > Since the conservative governor never touches that field, it will > be always 0 for that governor and it won't have any effect on the > results of computations in that case. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/cpufreq_governor.c | 27 +++++++++------------------ > drivers/cpufreq/cpufreq_governor.h | 2 +- > drivers/cpufreq/cpufreq_ondemand.c | 12 +++++------- > 3 files changed, 15 insertions(+), 26 deletions(-) Acked-by: Viresh Kumar -- viresh