diff --git a/[refs] b/[refs] index c3be15afcd52..536490daa952 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 964fe080d94db82a3268443e9b9ece4c60246414 +refs/heads/master: 2eca40a8ccd4160dbfaa5cbd61038d921d0e5f13 diff --git a/trunk/include/linux/cpufreq.h b/trunk/include/linux/cpufreq.h index 44717eb47639..79a2340d83cd 100644 --- a/trunk/include/linux/cpufreq.h +++ b/trunk/include/linux/cpufreq.h @@ -291,8 +291,15 @@ struct global_attr { int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); int cpufreq_update_policy(unsigned int cpu); +#ifdef CONFIG_CPU_FREQ /* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */ unsigned int cpufreq_get(unsigned int cpu); +#else +static inline unsigned int cpufreq_get(unsigned int cpu) +{ + return 0; +} +#endif /* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ #ifdef CONFIG_CPU_FREQ