diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/cpufreq.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 422f10561e0b..4d89e0e6f9cc 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
| @@ -227,6 +227,11 @@ struct cpufreq_driver { | |||
| 227 | int (*suspend) (struct cpufreq_policy *policy); | 227 | int (*suspend) (struct cpufreq_policy *policy); |
| 228 | int (*resume) (struct cpufreq_policy *policy); | 228 | int (*resume) (struct cpufreq_policy *policy); |
| 229 | struct freq_attr **attr; | 229 | struct freq_attr **attr; |
| 230 | |||
| 231 | /* platform specific boost support code */ | ||
| 232 | bool boost_supported; | ||
| 233 | bool boost_enabled; | ||
| 234 | int (*set_boost) (int state); | ||
| 230 | }; | 235 | }; |
| 231 | 236 | ||
| 232 | /* flags */ | 237 | /* flags */ |
| @@ -435,6 +440,7 @@ extern struct cpufreq_governor cpufreq_gov_conservative; | |||
| 435 | 440 | ||
| 436 | #define CPUFREQ_ENTRY_INVALID ~0 | 441 | #define CPUFREQ_ENTRY_INVALID ~0 |
| 437 | #define CPUFREQ_TABLE_END ~1 | 442 | #define CPUFREQ_TABLE_END ~1 |
| 443 | #define CPUFREQ_BOOST_FREQ ~2 | ||
| 438 | 444 | ||
| 439 | struct cpufreq_frequency_table { | 445 | struct cpufreq_frequency_table { |
| 440 | unsigned int driver_data; /* driver specific data, not used by core */ | 446 | unsigned int driver_data; /* driver specific data, not used by core */ |
| @@ -460,6 +466,24 @@ int cpufreq_frequency_table_get_index(struct cpufreq_policy *policy, | |||
| 460 | void cpufreq_frequency_table_update_policy_cpu(struct cpufreq_policy *policy); | 466 | void cpufreq_frequency_table_update_policy_cpu(struct cpufreq_policy *policy); |
| 461 | ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf); | 467 | ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf); |
| 462 | 468 | ||
| 469 | #ifdef CONFIG_CPU_FREQ | ||
| 470 | int cpufreq_boost_trigger_state(int state); | ||
| 471 | int cpufreq_boost_supported(void); | ||
| 472 | int cpufreq_boost_enabled(void); | ||
| 473 | #else | ||
| 474 | static inline int cpufreq_boost_trigger_state(int state) | ||
| 475 | { | ||
| 476 | return 0; | ||
| 477 | } | ||
| 478 | static inline int cpufreq_boost_supported(void) | ||
| 479 | { | ||
| 480 | return 0; | ||
| 481 | } | ||
| 482 | static inline int cpufreq_boost_enabled(void) | ||
| 483 | { | ||
| 484 | return 0; | ||
| 485 | } | ||
| 486 | #endif | ||
| 463 | /* the following funtion is for cpufreq core use only */ | 487 | /* the following funtion is for cpufreq core use only */ |
| 464 | struct cpufreq_frequency_table *cpufreq_frequency_get_table(unsigned int cpu); | 488 | struct cpufreq_frequency_table *cpufreq_frequency_get_table(unsigned int cpu); |
| 465 | 489 | ||
