[COMMON] soc: samsung: topology: Add cluster_flags
authorDaeyeong Lee <daeyeong.lee@samsung.com>
Tue, 13 Feb 2018 06:53:07 +0000 (15:53 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:32:54 +0000 (17:32 +0900)
Change-Id: If2ce37ef3f6a8ec6b51eccf05f4e24cbeeb1219c
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
drivers/soc/samsung/exynos-topology.c

index 11f250a31f429a605382682c04612f3d535bad45..559511766d855020aa37607a54f3cc05f7232173 100644 (file)
@@ -268,6 +268,11 @@ static int core_flags(void)
 }
 #endif
 
+static int cluster_flags(void)
+{
+       return cpu_core_flags() | topology_cluster_flags();
+}
+
 static int cpu_flags(void)
 {
        return topology_cpu_flags();
@@ -326,7 +331,7 @@ static struct sched_domain_topology_level arm64_topology[] = {
 #ifdef CONFIG_SCHED_MC
        { cpu_coregroup_mask, core_flags, cpu_core_energy, SD_INIT_NAME(MC) },
 #endif
-       { cpu_cluster_mask, SD_INIT_NAME(DSU) },
+       { cpu_cluster_mask, cluster_flags, SD_INIT_NAME(DSU) },
        { cpu_cpu_mask, cpu_flags, cpu_cluster_energy, SD_INIT_NAME(DIE) },
        { cpu_cpu_mask, NULL, cpu_system_energy, SD_INIT_NAME(SYS) },
        { NULL, }