From 589e8be90ac9053d12eff741aed5430edf062298 Mon Sep 17 00:00:00 2001 From: Dominik Brodowski Date: Fri, 14 Feb 2003 20:44:13 -0800 Subject: [PATCH] cpufreq: move frequency table helpers to extra module The CPU frequency table helpers can easily be modularized -- especially as they are not needed on all architectures, or for all drivers (even on x86 -- see longrun and gx-suspmod) --- include/linux/cpufreq.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 68571eca8e70..a49e134b2b6a 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -297,6 +297,7 @@ enum { #endif /* CONFIG_CPU_FREQ_24_API */ +#if defined(CONFIG_CPU_FREQ_TABLE) || defined(CONFIG_CPU_FREQ_TABLE_MODULE) /********************************************************************* * FREQUENCY TABLE HELPERS * *********************************************************************/ @@ -326,4 +327,6 @@ int cpufreq_frequency_table_target(struct cpufreq_policy *policy, unsigned int relation, unsigned int *index); +#endif /* CONFIG_CPU_FREQ_TABLE */ + #endif /* _LINUX_CPUFREQ_H */ -- cgit v1.2.3