mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 00:26:41 +07:00
mvebu: Use dev_pm_opp_set_sharing_cpus() to mark OPP tables as shared
That will allow us to avoid using cpufreq-dt platform data. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
1530b9963e
commit
947bd567f7
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/cpu_pm.h>
|
#include <linux/cpu_pm.h>
|
||||||
#include <linux/cpufreq-dt.h>
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
@ -609,10 +608,6 @@ int mvebu_pmsu_dfs_request(int cpu)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct cpufreq_dt_platform_data cpufreq_dt_pd = {
|
|
||||||
.independent_clocks = true,
|
|
||||||
};
|
|
||||||
|
|
||||||
static int __init armada_xp_pmsu_cpufreq_init(void)
|
static int __init armada_xp_pmsu_cpufreq_init(void)
|
||||||
{
|
{
|
||||||
struct device_node *np;
|
struct device_node *np;
|
||||||
@ -683,10 +678,15 @@ static int __init armada_xp_pmsu_cpufreq_init(void)
|
|||||||
clk_put(clk);
|
clk_put(clk);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = dev_pm_opp_set_sharing_cpus(cpu_dev,
|
||||||
|
cpumask_of(cpu_dev->id));
|
||||||
|
if (ret)
|
||||||
|
dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n",
|
||||||
|
__func__, ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
platform_device_register_data(NULL, "cpufreq-dt", -1,
|
platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
|
||||||
&cpufreq_dt_pd, sizeof(cpufreq_dt_pd));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user