From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425115AbcBRFgy (ORCPT ); Thu, 18 Feb 2016 00:36:54 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:33569 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424759AbcBRFgw (ORCPT ); Thu, 18 Feb 2016 00:36:52 -0500 Date: Thu, 18 Feb 2016 11:06:39 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List Subject: Re: [PATCH 3/12] cpufreq: governor: Add a ->start callback for governors Message-ID: <20160218053639.GI2610@vireshk-i7> References: <2938006.67J0esUvOA@vostro.rjw.lan> <2775883.CEf9mEMdYv@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2775883.CEf9mEMdYv@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:21, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > To avoid having to check the governor type explicitly in the common > code in order to initialize data structures specific to the governor > type properly, add a ->start callback to struct dbs_governor and > use it to initialize those data structures for the ondemand and > conservative governors. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/cpufreq_conservative.c | 9 +++++++++ > drivers/cpufreq/cpufreq_governor.c | 16 ++-------------- > drivers/cpufreq/cpufreq_governor.h | 1 + > drivers/cpufreq/cpufreq_ondemand.c | 10 ++++++++++ > 4 files changed, 22 insertions(+), 14 deletions(-) Acked-by: Viresh Kumar -- viresh