From c738df45948eea3722e836eb8387aca1342ba515 Mon Sep 17 00:00:00 2001 From: "lakkyung.jung" Date: Wed, 23 May 2018 22:50:36 +0900 Subject: [PATCH] [COMMON] soc: samsung: Fix the problem of passing wrong cluster id Change-Id: I6f5201c5760d569f753a8f0d0c4b32132de370c9 Signed-off-by: lakkyung.jung --- drivers/soc/samsung/exynos-cpupm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/samsung/exynos-cpupm.c b/drivers/soc/samsung/exynos-cpupm.c index ebbac4d10d38..6f20c33194c8 100644 --- a/drivers/soc/samsung/exynos-cpupm.c +++ b/drivers/soc/samsung/exynos-cpupm.c @@ -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; } -- 2.20.1