diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-05-02 13:27:08 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:08 -0400 |
commit | 184c44d2049c4db7ef6ec65794546954da2c6a0e (patch) | |
tree | 73d15a15bea7c5edb75ec7eba53de7791da93317 /include/linux | |
parent | a4831e08b7f3ed51623c9eb25e8c945b76b3eda3 (diff) |
[PATCH] x86-64: fix x86_64-mm-sched-clock-share
Fix for the following patch. Provide dummy cpufreq functions when
CPUFREQ is not compiled in.
Cc: Andi Kleen <ak@suse.de>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/cpufreq.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 0899e2cdcdd1..cb9b2ec8849c 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -32,7 +32,15 @@ | |||
32 | * CPUFREQ NOTIFIER INTERFACE * | 32 | * CPUFREQ NOTIFIER INTERFACE * |
33 | *********************************************************************/ | 33 | *********************************************************************/ |
34 | 34 | ||
35 | #ifdef CONFIG_CPU_FREQ | ||
35 | int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); | 36 | int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); |
37 | #else | ||
38 | static inline int cpufreq_register_notifier(struct notifier_block *nb, | ||
39 | unsigned int list) | ||
40 | { | ||
41 | return 0; | ||
42 | } | ||
43 | #endif | ||
36 | int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); | 44 | int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); |
37 | 45 | ||
38 | #define CPUFREQ_TRANSITION_NOTIFIER (0) | 46 | #define CPUFREQ_TRANSITION_NOTIFIER (0) |
@@ -261,17 +269,22 @@ int cpufreq_set_policy(struct cpufreq_policy *policy); | |||
261 | int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); | 269 | int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); |
262 | int cpufreq_update_policy(unsigned int cpu); | 270 | int cpufreq_update_policy(unsigned int cpu); |
263 | 271 | ||
264 | /* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */ | ||
265 | unsigned int cpufreq_get(unsigned int cpu); | ||
266 | 272 | ||
267 | /* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ | 273 | /* |
274 | * query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it | ||
275 | */ | ||
268 | #ifdef CONFIG_CPU_FREQ | 276 | #ifdef CONFIG_CPU_FREQ |
269 | unsigned int cpufreq_quick_get(unsigned int cpu); | 277 | unsigned int cpufreq_quick_get(unsigned int cpu); |
278 | unsigned int cpufreq_get(unsigned int cpu); | ||
270 | #else | 279 | #else |
271 | static inline unsigned int cpufreq_quick_get(unsigned int cpu) | 280 | static inline unsigned int cpufreq_quick_get(unsigned int cpu) |
272 | { | 281 | { |
273 | return 0; | 282 | return 0; |
274 | } | 283 | } |
284 | static inline unsigned int cpufreq_get(unsigned int cpu) | ||
285 | { | ||
286 | return 0; | ||
287 | } | ||
275 | #endif | 288 | #endif |
276 | 289 | ||
277 | 290 | ||