diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-01-27 19:25:53 -0800 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2022-02-09 13:18:49 +0530 |
commit | 4f774c4a65bf3987d1a95c966e884f38c8a942af (patch) | |
tree | 6a87fa836c2e0faee8c2b0282f81a728d7175aab /include/linux/cpufreq.h | |
parent | e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff) | |
download | lwn-4f774c4a65bf3987d1a95c966e884f38c8a942af.tar.gz lwn-4f774c4a65bf3987d1a95c966e884f38c8a942af.zip |
cpufreq: Reintroduce ready() callback
This effectively revert '4bf8e582119e ("cpufreq: Remove ready()
callback")', in order to reintroduce the ready callback.
This is needed in order to be able to leave the thermal pressure
interrupts in the Qualcomm CPUfreq driver disabled during
initialization, so that it doesn't fire while related_cpus are still 0.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
[ Viresh: Added the Chinese translation as well and updated commit msg ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 1ab29e61b078..3522a272b74d 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -382,6 +382,9 @@ struct cpufreq_driver { int (*suspend)(struct cpufreq_policy *policy); int (*resume)(struct cpufreq_policy *policy); + /* Will be called after the driver is fully initialized */ + void (*ready)(struct cpufreq_policy *policy); + struct freq_attr **attr; /* platform specific boost support code */ |