From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752013AbcBEIPF (ORCPT ); Fri, 5 Feb 2016 03:15:05 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:34050 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751933AbcBEIPA (ORCPT ); Fri, 5 Feb 2016 03:15:00 -0500 Date: Fri, 5 Feb 2016 13:44: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 v2 6/10] cpufreq: governor: Rework cpufreq_governor_dbs() Message-ID: <20160205081455.GI21792@vireshk> References: <3705929.bslqXH980s@vostro.rjw.lan> <9008098.QDD8C89zDx@vostro.rjw.lan> <41589956.sxJrHjYhQ2@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41589956.sxJrHjYhQ2@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 05-02-16, 03:18, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since it is possible to obtain a pointer to struct dbs_governor > from a pointer to the struct governor embedded in it via > container_of(), the second argument of cpufreq_governor_init() > is not necessary. Accordingly, cpufreq_governor_dbs() doesn't > need its second argument either and the ->governor callbacks > for both the ondemand and conservative governors may be set > to cpufreq_governor_dbs() directly. Make that happen. > > Signed-off-by: Rafael J. Wysocki > Acked-by: Saravana Kannan > --- > drivers/cpufreq/cpufreq_conservative.c | 11 +---------- > drivers/cpufreq/cpufreq_governor.c | 10 +++++----- > drivers/cpufreq/cpufreq_governor.h | 3 +-- > drivers/cpufreq/cpufreq_ondemand.c | 11 +---------- > 4 files changed, 8 insertions(+), 27 deletions(-) Acked-by: Viresh Kumar -- viresh