From efaa77053d9c10f1a7454d2a3491f4e23eacd445 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Fri, 23 Jun 2017 10:07:37 -0700 Subject: [PATCH] UPSTREAM: arm64: dts: rockchip: set rk3399 dynamic CPU power coefficients Provide the dynamic power coefficient of the big and little CPU clusters. These numbers are currently in use on the Samsung Chromebook Plus ("Kevin"). The power allocator thermal governor doesn't know how to do anything if it doesn't get power parameters from its cooling devices (in this case, CPUfreq). So this effectively enables the power-allocator governor. Signed-off-by: Brian Norris [set the property in each core node] Signed-off-by: Heiko Stuebner (Cherry-picked from f4697bd7021f17ed540c16abafee72be73577826) Signed-off-by: Jianqun Xu Conflicts: arch/arm64/boot/dts/rockchip/rk3399.dtsi Change-Id: I8899a2224fe6cbf6e6f874006bf115eee62b7041 --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index cb369260b3e7..550ee28d1ab3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -117,8 +117,8 @@ enable-method = "psci"; #cooling-cells = <2>; /* min followed by max */ clocks = <&cru ARMCLKL>; - dynamic-power-coefficient = <100>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + dynamic-power-coefficient = <100>; }; cpu_l1: cpu@1 { @@ -128,6 +128,7 @@ enable-method = "psci"; clocks = <&cru ARMCLKL>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + dynamic-power-coefficient = <100>; }; cpu_l2: cpu@2 { @@ -137,6 +138,7 @@ enable-method = "psci"; clocks = <&cru ARMCLKL>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + dynamic-power-coefficient = <100>; }; cpu_l3: cpu@3 { @@ -146,6 +148,7 @@ enable-method = "psci"; clocks = <&cru ARMCLKL>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + dynamic-power-coefficient = <100>; }; cpu_b0: cpu@100 { @@ -155,8 +158,8 @@ enable-method = "psci"; #cooling-cells = <2>; /* min followed by max */ clocks = <&cru ARMCLKB>; - dynamic-power-coefficient = <436>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + dynamic-power-coefficient = <100>; }; cpu_b1: cpu@101 { @@ -166,6 +169,7 @@ enable-method = "psci"; clocks = <&cru ARMCLKB>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + dynamic-power-coefficient = <100>; }; idle-states {