From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754224AbcBGP4A (ORCPT ); Sun, 7 Feb 2016 10:56:00 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:34254 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753354AbcBGPz6 (ORCPT ); Sun, 7 Feb 2016 10:55:58 -0500 Date: Sun, 7 Feb 2016 21:25:55 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List , Srinivas Pandruvada , Juri Lelli , Steve Muckle , Saravana Kannan Subject: Re: [PATCH 2/3] cpufreq: governor: Rearrange governor data structures Message-ID: <20160207155555.GJ3808@vireshk> References: <3705929.bslqXH980s@vostro.rjw.lan> <9008098.QDD8C89zDx@vostro.rjw.lan> <2998470.K7oslgfuja@vostro.rjw.lan> <2710262.Af7Ngczbqf@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2710262.Af7Ngczbqf@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 07-02-16, 16:24, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The struct policy_dbs_info objects representing per-policy governor > data are not accessible directly from the corresponding policy > objects. To access them, one has to get a pointer to the > struct cpu_dbs_info of policy->cpu and use the policy_dbs field of > that which isn't really straightforward. > > To address that rearrange the governor data structures so the > governor_data pointer in struct cpufreq_policy will point to > struct policy_dbs_info (instead of struct dbs_data) and that will > contain a pointer to struct dbs_data. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/amd_freq_sensitivity.c | 3 - > drivers/cpufreq/cpufreq_conservative.c | 6 +- > drivers/cpufreq/cpufreq_governor.c | 74 ++++++++++++++++----------------- > drivers/cpufreq/cpufreq_governor.h | 27 ++++++------ > drivers/cpufreq/cpufreq_ondemand.c | 18 ++++---- > 5 files changed, 68 insertions(+), 60 deletions(-) Acked-by: Viresh Kumar -- viresh