[COMMON] soc: samsung: Fix the problem of passing wrong cluster id
authorlakkyung.jung <lakkyung.jung@samsung.com>
Wed, 23 May 2018 13:50:36 +0000 (22:50 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:11 +0000 (20:22 +0300)
Change-Id: I6f5201c5760d569f753a8f0d0c4b32132de370c9
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
drivers/soc/samsung/exynos-cpupm.c

index ebbac4d10d38e7c7781a08d5fc85bb4c6e91cd8f..6f20c33194c8dbb376b660399a5c3f894aae625d 100644 (file)
@@ -301,7 +301,7 @@ static int cpuhp_cpupm_online(unsigned int cpu)
 
        cpumask_and(&mask, cpu_coregroup_mask(cpu), cpu_online_mask);
        if (cpumask_weight(&mask) == 0)
-               cluster_enable(cpu);
+               cluster_enable(cpu_topology[cpu].cluster_id);
 
        cpu_enable(cpu);
 
@@ -316,7 +316,7 @@ static int cpuhp_cpupm_offline(unsigned int cpu)
 
        cpumask_and(&mask, cpu_coregroup_mask(cpu), cpu_online_mask);
        if (cpumask_weight(&mask) == 0)
-               cluster_disable(cpu);
+               cluster_disable(cpu_topology[cpu].cluster_id);
 
        return 0;
 }