diff options
| author | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-08 01:31:11 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-08 01:31:11 -0400 |
| commit | 334d0dd8b660557608142f0f77abc6812b48f08b (patch) | |
| tree | 9393a9aa099d7d42deda5f9f5054796c0c769be7 /include/linux/cpufreq.h | |
| parent | 3f07d8796262f6aee135c8dd9a91210da9f888e4 (diff) | |
| parent | 5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/cpufreq.h')
| -rw-r--r-- | include/linux/cpufreq.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 0899e2cdcdd1..963051a967d6 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) |
| @@ -257,21 +265,25 @@ struct freq_attr { | |||
| 257 | /********************************************************************* | 265 | /********************************************************************* |
| 258 | * CPUFREQ 2.6. INTERFACE * | 266 | * CPUFREQ 2.6. INTERFACE * |
| 259 | *********************************************************************/ | 267 | *********************************************************************/ |
| 260 | int cpufreq_set_policy(struct cpufreq_policy *policy); | ||
| 261 | int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); | 268 | int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); |
| 262 | int cpufreq_update_policy(unsigned int cpu); | 269 | int cpufreq_update_policy(unsigned int cpu); |
| 263 | 270 | ||
| 264 | /* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */ | ||
| 265 | unsigned int cpufreq_get(unsigned int cpu); | ||
| 266 | 271 | ||
| 267 | /* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ | 272 | /* |
| 273 | * query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it | ||
| 274 | */ | ||
| 268 | #ifdef CONFIG_CPU_FREQ | 275 | #ifdef CONFIG_CPU_FREQ |
| 269 | unsigned int cpufreq_quick_get(unsigned int cpu); | 276 | unsigned int cpufreq_quick_get(unsigned int cpu); |
| 277 | unsigned int cpufreq_get(unsigned int cpu); | ||
| 270 | #else | 278 | #else |
| 271 | static inline unsigned int cpufreq_quick_get(unsigned int cpu) | 279 | static inline unsigned int cpufreq_quick_get(unsigned int cpu) |
| 272 | { | 280 | { |
| 273 | return 0; | 281 | return 0; |
| 274 | } | 282 | } |
| 283 | static inline unsigned int cpufreq_get(unsigned int cpu) | ||
| 284 | { | ||
| 285 | return 0; | ||
| 286 | } | ||
| 275 | #endif | 287 | #endif |
| 276 | 288 | ||
| 277 | 289 | ||
