diff options
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index f3822f836e14..9d803b529ac2 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -469,6 +469,27 @@ struct cpufreq_frequency_table { | |||
469 | * order */ | 469 | * order */ |
470 | }; | 470 | }; |
471 | 471 | ||
472 | #if defined(CONFIG_CPU_FREQ) && defined(CONFIG_PM_OPP) | ||
473 | int dev_pm_opp_init_cpufreq_table(struct device *dev, | ||
474 | struct cpufreq_frequency_table **table); | ||
475 | void dev_pm_opp_free_cpufreq_table(struct device *dev, | ||
476 | struct cpufreq_frequency_table **table); | ||
477 | #else | ||
478 | static inline int dev_pm_opp_init_cpufreq_table(struct device *dev, | ||
479 | struct cpufreq_frequency_table | ||
480 | **table) | ||
481 | { | ||
482 | return -EINVAL; | ||
483 | } | ||
484 | |||
485 | static inline void dev_pm_opp_free_cpufreq_table(struct device *dev, | ||
486 | struct cpufreq_frequency_table | ||
487 | **table) | ||
488 | { | ||
489 | } | ||
490 | #endif | ||
491 | |||
492 | |||
472 | bool cpufreq_next_valid(struct cpufreq_frequency_table **pos); | 493 | bool cpufreq_next_valid(struct cpufreq_frequency_table **pos); |
473 | 494 | ||
474 | /* | 495 | /* |