mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
cpufreq: dt: Add support to adjust power scale
Change-Id: I2695bdc779dafc69f0b11d157fbc519c88984d57 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
parent
a724f211e7
commit
fb6a8d62bb
|
|
@ -23,6 +23,9 @@
|
|||
#include <linux/thermal.h>
|
||||
|
||||
#include "cpufreq-dt.h"
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
#include "rockchip-cpufreq.h"
|
||||
#endif
|
||||
|
||||
struct private_data {
|
||||
struct list_head node;
|
||||
|
|
@ -279,6 +282,10 @@ static int dt_cpufreq_early_init(struct device *dev, int cpu)
|
|||
__func__, ret);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
rockchip_cpufreq_adjust_power_scale(cpu_dev);
|
||||
#endif
|
||||
|
||||
ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &priv->freq_table);
|
||||
if (ret) {
|
||||
dev_err(cpu_dev, "failed to init cpufreq table: %d\n", ret);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user