Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee6522a4 authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

ARM: dts: msm: Add energy model for 8909w target



Add energy costs for 8909w target, which is used by
energy-aware scheduler for task placement. And remove
incorrect sched boot args.

Change-Id: I418eb5312263e30fdfa29f20c62a5c3794a2933b
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 3afabc36
Loading
Loading
Loading
Loading
+33 −4
Original line number Diff line number Diff line
@@ -23,10 +23,6 @@
			<275 0>;
	interrupt-parent = <&intc>;

	chosen {
		bootargs = "sched_enable_hmp=1";
	};

	aliases {
		/* smdtty devices */
		smd1 = &smdtty_apps_fm;
@@ -78,6 +74,8 @@
			device_type = "cpu";
			compatible = "arm,cortex-a7";
			reg = <0x0>;
			efficiency = <1024>;
			sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
			qcom,sleep-status = <&cpu0_slp_sts>;
			qcom,limits-info = <&mitigation_profile0>;
		};
@@ -86,6 +84,8 @@
			device_type = "cpu";
			compatible = "arm,cortex-a7";
			reg = <0x1>;
			efficiency = <1024>;
			sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
			qcom,sleep-status = <&cpu1_slp_sts>;
			qcom,limits-info = <&mitigation_profile2>;
		};
@@ -94,6 +94,8 @@
			device_type = "cpu";
			compatible = "arm,cortex-a7";
			reg = <0x2>;
			efficiency = <1024>;
			sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
			qcom,sleep-status = <&cpu2_slp_sts>;
			qcom,limits-info = <&mitigation_profile1>;
		};
@@ -102,11 +104,38 @@
			device_type = "cpu";
			compatible = "arm,cortex-a7";
			reg = <0x3>;
			efficiency = <1024>;
			sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
			qcom,sleep-status = <&cpu3_slp_sts>;
			qcom,limits-info = <&mitigation_profile2>;
		};
	};

	energy_costs: energy-costs {
		compatible = "sched-energy";

		CPU_COST_0: core-cost0 {
			busy-cost-data = <
				400000	82
				800000	164
				1094400	290
			>;
			idle-cost-data = <
				40 20 12 8
			>;
		};
		CLUSTER_COST_0: cluster-cost0 {
			busy-cost-data = <
				400000	23
				800000	48
				1094400	87
			>;
			idle-cost-data = <
				4 3 2 1
			>;
		};
	};

	firmware: firmware {
		android {
			compatible = "android,firmware";
+0 −6
Original line number Diff line number Diff line
@@ -10,12 +10,6 @@
 * GNU General Public License for more details.
 */

/ {
	chosen {
		bootargs="sched_enable_hmp=0";
	};
};

&soc {
	/delete-node/ qcom,clock-a7@0b011050;
	clock_cpu: qcom,clock-a7@0b011050 {