From 2f44178eef95e1dced95709679c2e928bfb22b25 Mon Sep 17 00:00:00 2001 From: Hong Guo Date: Fri, 8 Nov 2019 19:52:50 +0800 Subject: [PATCH] cpufreq: defect clean up overrun [1/1] PD#SWPL-16541 Problem: defect clean up overrun Solution: defect clean up overrun Verify: test pass on g12a_u200 Change-Id: Ib9b5c1f5da9fed34a552eb7ee539e7276d922e38 Signed-off-by: Hong Guo --- drivers/amlogic/cpufreq/meson-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/amlogic/cpufreq/meson-cpufreq.c b/drivers/amlogic/cpufreq/meson-cpufreq.c index 3251266c5fc7..658e4c39b327 100644 --- a/drivers/amlogic/cpufreq/meson-cpufreq.c +++ b/drivers/amlogic/cpufreq/meson-cpufreq.c @@ -566,8 +566,7 @@ static int meson_cpufreq_init(struct cpufreq_policy *policy) } pr_info("value of gp1_clk_target %u\n", gp1_clk_target); - if (cur_cluster < MAX_CLUSTERS) - cpumask_copy(policy->cpus, topology_core_cpumask(policy->cpu)); + cpumask_copy(policy->cpus, topology_core_cpumask(policy->cpu)); tables_index = choose_cpufreq_tables_index(np, cur_cluster); ret = dev_pm_opp_of_cpumask_add_table_indexed(policy->cpus,