From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750970AbcBDFDN (ORCPT ); Thu, 4 Feb 2016 00:03:13 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:36041 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750784AbcBDFDK (ORCPT ); Thu, 4 Feb 2016 00:03:10 -0500 Date: Thu, 4 Feb 2016 10:33:07 +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 1/11] cpufreq: Clean up default and fallback governor setup Message-ID: <20160204050307.GT3469@vireshk> References: <3705929.bslqXH980s@vostro.rjw.lan> <8241294.RLKfcoktTC@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8241294.RLKfcoktTC@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 04-02-16, 00:14, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The preprocessor magic used for setting the default cpufreq governor > (and for using the performance governor as a fallback one for that > matter) is really nasty, so replace it with __weak functions and > overrides. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/cpufreq.c | 37 ++++++++++++++++++--------------- > drivers/cpufreq/cpufreq_conservative.c | 10 +++++--- > drivers/cpufreq/cpufreq_ondemand.c | 34 ++++++++++++++++-------------- > drivers/cpufreq/cpufreq_performance.c | 18 ++++++++++++---- > drivers/cpufreq/cpufreq_powersave.c | 10 +++++--- > drivers/cpufreq/cpufreq_userspace.c | 10 +++++--- > include/linux/cpufreq.h | 25 +--------------------- > 7 files changed, 73 insertions(+), 71 deletions(-) Acked-by: Viresh Kumar -- viresh