diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2020-12-08 06:52:17 +0100 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-12-08 06:52:17 +0100 |
commit | c8bb4520543823a9b3da3861304273dc7232e2c7 (patch) | |
tree | 26670815d56dfc89fbe55e77c8e987324b70f95f /drivers/cpufreq/scmi-cpufreq.c | |
parent | cpufreq: tegra194: Rename tegra194_get_speed_common function (diff) | |
parent | cpufreq: arm_scmi: Discover the power scale in performance protocol (diff) | |
download | linux-c8bb4520543823a9b3da3861304273dc7232e2c7.tar.xz linux-c8bb4520543823a9b3da3861304273dc7232e2c7.zip |
Merge branch 'cpufreq/scmi' into cpufreq/arm/linux-next
Diffstat (limited to 'drivers/cpufreq/scmi-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/scmi-cpufreq.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/cpufreq/scmi-cpufreq.c b/drivers/cpufreq/scmi-cpufreq.c index 8286205c7165..491a0a24fb1e 100644 --- a/drivers/cpufreq/scmi-cpufreq.c +++ b/drivers/cpufreq/scmi-cpufreq.c @@ -126,6 +126,7 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy) struct scmi_data *priv; struct cpufreq_frequency_table *freq_table; struct em_data_callback em_cb = EM_DATA_CB(scmi_get_cpu_power); + bool power_scale_mw; cpu_dev = get_cpu_device(policy->cpu); if (!cpu_dev) { @@ -189,7 +190,9 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy) policy->fast_switch_possible = handle->perf_ops->fast_switch_possible(handle, cpu_dev); - em_dev_register_perf_domain(cpu_dev, nr_opp, &em_cb, policy->cpus); + power_scale_mw = handle->perf_ops->power_scale_mw_get(handle); + em_dev_register_perf_domain(cpu_dev, nr_opp, &em_cb, policy->cpus, + power_scale_mw); return 0; |