diff options
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 44717eb47639..4de02b10007f 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -232,6 +232,7 @@ struct cpufreq_driver { | |||
232 | /* optional */ | 232 | /* optional */ |
233 | unsigned int (*getavg) (struct cpufreq_policy *policy, | 233 | unsigned int (*getavg) (struct cpufreq_policy *policy, |
234 | unsigned int cpu); | 234 | unsigned int cpu); |
235 | int (*bios_limit) (int cpu, unsigned int *limit); | ||
235 | 236 | ||
236 | int (*exit) (struct cpufreq_policy *policy); | 237 | int (*exit) (struct cpufreq_policy *policy); |
237 | int (*suspend) (struct cpufreq_policy *policy, pm_message_t pmsg); | 238 | int (*suspend) (struct cpufreq_policy *policy, pm_message_t pmsg); |
@@ -291,8 +292,15 @@ struct global_attr { | |||
291 | int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); | 292 | int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); |
292 | int cpufreq_update_policy(unsigned int cpu); | 293 | int cpufreq_update_policy(unsigned int cpu); |
293 | 294 | ||
295 | #ifdef CONFIG_CPU_FREQ | ||
294 | /* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */ | 296 | /* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */ |
295 | unsigned int cpufreq_get(unsigned int cpu); | 297 | unsigned int cpufreq_get(unsigned int cpu); |
298 | #else | ||
299 | static inline unsigned int cpufreq_get(unsigned int cpu) | ||
300 | { | ||
301 | return 0; | ||
302 | } | ||
303 | #endif | ||
296 | 304 | ||
297 | /* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ | 305 | /* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ |
298 | #ifdef CONFIG_CPU_FREQ | 306 | #ifdef CONFIG_CPU_FREQ |