From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753183AbcBJFst (ORCPT ); Wed, 10 Feb 2016 00:48:49 -0500 Received: from e38.co.us.ibm.com ([32.97.110.159]:41218 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751739AbcBJFsr (ORCPT ); Wed, 10 Feb 2016 00:48:47 -0500 X-IBM-Helo: d03dlp01.boulder.ibm.com X-IBM-MailFrom: ego@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;linux-pm@vger.kernel.org Date: Wed, 10 Feb 2016 11:18:19 +0530 From: Gautham R Shenoy To: Gautham R Shenoy Cc: "Rafael J. Wysocki" , Linux PM list , Linux Kernel Mailing List , Viresh Kumar , Srinivas Pandruvada , Juri Lelli , Steve Muckle , Saravana Kannan Subject: Re: [PATCH v2 1/10] cpufreq: Clean up default and fallback governor setup Message-ID: <20160210054819.GB31787@in.ibm.com> Reply-To: ego@linux.vnet.ibm.com References: <3705929.bslqXH980s@vostro.rjw.lan> <9008098.QDD8C89zDx@vostro.rjw.lan> <7056089.34C11T15Ra@vostro.rjw.lan> <20160210051514.GA31787@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160210051514.GA31787@in.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16021005-0029-0000-0000-00001060F4B4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2016 at 10:45:14AM +0530, Gautham R Shenoy wrote: > Hello Rafael, > > On Fri, Feb 05, 2016 at 03:11:54AM +0100, Rafael J. Wysocki wrote: > [..snip..] > > Index: linux-pm/drivers/cpufreq/cpufreq_performance.c > > =================================================================== > > --- linux-pm.orig/drivers/cpufreq/cpufreq_performance.c > > +++ linux-pm/drivers/cpufreq/cpufreq_performance.c > > @@ -33,10 +33,7 @@ static int cpufreq_governor_performance( > > return 0; > > } > > > > -#ifdef CONFIG_CPU_FREQ_GOV_PERFORMANCE_MODULE > > -static > > -#endif > > -struct cpufreq_governor cpufreq_gov_performance = { > > +static struct cpufreq_governor cpufreq_gov_performance = { > > .name = "performance", > > .governor = cpufreq_governor_performance, > > .owner = THIS_MODULE, > > @@ -52,6 +49,19 @@ static void __exit cpufreq_gov_performan > > cpufreq_unregister_governor(&cpufreq_gov_performance); > > } > > > > +#ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE > > +struct cpufreq_governor *cpufreq_default_governor(void) > > +{ > > + return &cpufreq_gov_performance; > > +} > > +#endif > > +#ifndef CONFIG_CPU_FREQ_GOV_PERFORMANCE_MODULE > > Shouldn't this be #ifdef ? Never mind! Shouldn't be reviewing patches first thing in the morning! -- Thanks and Regards gautham.