--- zzzz-none-000/linux-4.1.38/include/linux/cpufreq.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/cpufreq.h 2020-11-25 10:06:48.000000000 +0000 @@ -155,6 +155,14 @@ u64 get_cpu_idle_time(unsigned int cpu, u64 *wall, int io_busy); int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); +#if defined(CONFIG_BCM_KF_ARM_BCM963XX) +int cpufreq_set_policy(struct cpufreq_policy *data, struct cpufreq_policy *policy); +int cpufreq_set_speed(const char *govstr, int fraction); +unsigned cpufreq_get_freq_max(unsigned *max_out); +void cpufreq_set_freq_max(unsigned int fraction); +int cpufreq_minimum_reserve(int freq); +int cpufreq_minimum_unreserve(int freq); +#endif int cpufreq_update_policy(unsigned int cpu); bool have_governor_per_policy(void); struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy); @@ -271,7 +279,9 @@ /* Will be called after the driver is fully initialized */ void (*ready)(struct cpufreq_policy *policy); - +#if defined(CONFIG_BCM_KF_ARM_BCM963XX) + int (*init_sysfs) (struct cpufreq_policy *policy); +#endif struct freq_attr **attr; /* platform specific boost support code */ @@ -362,6 +372,7 @@ /* Transition notifiers */ #define CPUFREQ_PRECHANGE (0) #define CPUFREQ_POSTCHANGE (1) +#define CPUFREQ_NOCHANGE (10) /* Policy Notifiers */ #define CPUFREQ_ADJUST (0) @@ -510,16 +521,16 @@ void dev_pm_opp_free_cpufreq_table(struct device *dev, struct cpufreq_frequency_table **table); #else -static inline int dev_pm_opp_init_cpufreq_table(struct device *dev, +static inline int dev_pm_opp_init_cpufreq_table(struct device *dev __maybe_unused, struct cpufreq_frequency_table - **table) + **table __maybe_unused) { return -EINVAL; } -static inline void dev_pm_opp_free_cpufreq_table(struct device *dev, +static inline void dev_pm_opp_free_cpufreq_table(struct device *dev __maybe_unused, struct cpufreq_frequency_table - **table) + **table __maybe_unused) { } #endif