From: Daeyeong Lee Date: Wed, 28 Mar 2018 01:31:47 +0000 (+0900) Subject: [COMMON] soc: samsung: topology: Remove unnecessary ignore-energy-costs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cc28e65664ee5ea5062de1b688fd5046412316df;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] soc: samsung: topology: Remove unnecessary ignore-energy-costs Change-Id: I35839c994cb86b83897a76173c452a2241834ffe Signed-off-by: Daeyeong Lee --- diff --git a/drivers/soc/samsung/exynos-topology.c b/drivers/soc/samsung/exynos-topology.c index 35cfa92447ac..3341e709e2e4 100644 --- a/drivers/soc/samsung/exynos-topology.c +++ b/drivers/soc/samsung/exynos-topology.c @@ -62,7 +62,7 @@ static int __init parse_core(struct device_node *core, int cluster_id, int clust int coregroup_id, int coregroup_elvl, int core_id) { int cpu; - int core_elvl = -1; + int core_elvl = 0; cpu = get_cpu_for_node(core); if (cpu < 0) { @@ -74,15 +74,11 @@ static int __init parse_core(struct device_node *core, int cluster_id, int clust cpu_topology[cpu].coregroup_id = coregroup_id; cpu_topology[cpu].core_id = core_id; - if (!of_property_read_bool(core, "ignore-energy-costs")) { - core_elvl = 0; + if (coregroup_elvl != -1) + coregroup_elvl++; - if (coregroup_elvl != -1) - coregroup_elvl++; - - if (cluster_elvl != -1) - cluster_elvl++; - } + if (cluster_elvl != -1) + cluster_elvl++; cpu_energy_level[cpu].core = core_elvl; cpu_energy_level[cpu].coregroup = coregroup_elvl; @@ -98,15 +94,11 @@ static int __init parse_coregroup(struct device_node *coregroup, int cluster_id, bool has_cores = false; struct device_node *c; int core_id; - int coregroup_elvl = -1; + int coregroup_elvl = 0; int ret; - if (!of_property_read_bool(coregroup, "ignore-energy-costs")) { - coregroup_elvl = 0; - - if (cluster_elvl != -1) - cluster_elvl++; - } + if (cluster_elvl != -1) + cluster_elvl++; core_id = 0; do { @@ -135,12 +127,9 @@ static int __init parse_cluster(struct device_node *cluster, int cluster_id) bool has_cores = false; struct device_node *c; int coregroup_id, core_id; - int cluster_elvl = -1; + int cluster_elvl = 0; int ret; - if (!of_property_read_bool(cluster, "ignore-energy-costs")) - cluster_elvl = 0; - /* First check for child coregroup */ coregroup_id = 0; do {