From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH v7 3/7] thermal:boost: Automatic enable/disable of BOOST feature Date: Mon, 26 Aug 2013 11:03:51 +0530 Message-ID: References: <1370502472-7249-1-git-send-email-l.majewski@samsung.com> <1376388505-30233-1-git-send-email-l.majewski@samsung.com> <1376388505-30233-4-git-send-email-l.majewski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <1376388505-30233-4-git-send-email-l.majewski@samsung.com> Sender: cpufreq-owner@vger.kernel.org To: Lukasz Majewski Cc: "Rafael J. Wysocki" , Zhang Rui , Eduardo Valentin , "cpufreq@vger.kernel.org" , Linux PM list , Jonghwa Lee , Lukasz Majewski , linux-kernel , Bartlomiej Zolnierkiewicz , Daniel Lezcano , Kukjin Kim , Myungjoo Ham , "R, Durgadoss" List-Id: linux-pm@vger.kernel.org On 13 August 2013 15:38, Lukasz Majewski wrote: > diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h > index b5defd4..ec19da9 100644 > --- a/include/linux/cpufreq.h > +++ b/include/linux/cpufreq.h > @@ -408,10 +408,24 @@ int cpufreq_frequency_table_target(struct cpufreq_policy *policy, > > void cpufreq_frequency_table_update_policy_cpu(struct cpufreq_policy *policy); > ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf); > +#ifdef CONFIG_CPU_FREQ > int cpufreq_boost_trigger_state(int state); > int cpufreq_boost_supported(void); > int cpufreq_boost_enabled(void); > - > +#else > +static inline int cpufreq_boost_trigger_state(int state) > +{ > + return 0; > +} > +static inline int cpufreq_boost_supported(void) > +{ > + return 0; > +} > +static inline int cpufreq_boost_enabled(void) > +{ > + return 0; > +} > +#endif I almost gave an Ack before I saw this :) This should be moved to the first patch I believe..