Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
947bd567 1530b996

+7 -7
+7 -7
arch/arm/mach-mvebu/pmsu.c
··· 20 20 21 21 #include <linux/clk.h> 22 22 #include <linux/cpu_pm.h> 23 - #include <linux/cpufreq-dt.h> 24 23 #include <linux/delay.h> 25 24 #include <linux/init.h> 26 25 #include <linux/io.h> ··· 608 609 return 0; 609 610 } 610 611 611 - struct cpufreq_dt_platform_data cpufreq_dt_pd = { 612 - .independent_clocks = true, 613 - }; 614 - 615 612 static int __init armada_xp_pmsu_cpufreq_init(void) 616 613 { 617 614 struct device_node *np; ··· 678 683 clk_put(clk); 679 684 return ret; 680 685 } 686 + 687 + ret = dev_pm_opp_set_sharing_cpus(cpu_dev, 688 + cpumask_of(cpu_dev->id)); 689 + if (ret) 690 + dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n", 691 + __func__, ret); 681 692 } 682 693 683 - platform_device_register_data(NULL, "cpufreq-dt", -1, 684 - &cpufreq_dt_pd, sizeof(cpufreq_dt_pd)); 694 + platform_device_register_simple("cpufreq-dt", -1, NULL, 0); 685 695 return 0; 686 696 } 687 697