From: Andrew Morton arch/x86_64/kernel/built-in.o: In function `resync_freq': sched-clock.c:(.text+0x97f3): undefined reference to `cpufreq_get' Cc: Andi Kleen Cc: Dave Jones Signed-off-by: Andrew Morton --- include/linux/cpufreq.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff -puN include/linux/cpufreq.h~fix-x86_64-mm-sched-clock-share include/linux/cpufreq.h --- a/include/linux/cpufreq.h~fix-x86_64-mm-sched-clock-share +++ a/include/linux/cpufreq.h @@ -275,13 +275,19 @@ struct freq_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); -/* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ -#ifdef CONFIG_CPU_FREQ +/* + * query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it + */ unsigned int cpufreq_quick_get(unsigned int cpu); #else +static inline unsigned int cpufreq_get(unsigned int cpu) +{ + return 0; +} static inline unsigned int cpufreq_quick_get(unsigned int cpu) { return 0; _