[COMMON] soc: samsung: topology: Add DSU level in topology hierarchy
authorDaeyeong Lee <daeyeong.lee@samsung.com>
Mon, 12 Feb 2018 10:25:54 +0000 (19:25 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:54 +0000 (17:30 +0900)
Change-Id: I4fa8c4ecdc4638da00375e62827d577489e6fcf1
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
arch/arm64/include/asm/topology.h
drivers/soc/samsung/exynos-topology.c

index 4c07803eb3dc4ba57a3fef1b3fb6a32585b8db7f..ee52e851eb2f29ef3bc80c5d48b37dc28212f8b2 100644 (file)
@@ -26,6 +26,7 @@ extern struct cpu_topology cpu_topology[NR_CPUS];
 void init_cpu_topology(void);
 void store_cpu_topology(unsigned int cpuid);
 const struct cpumask *cpu_coregroup_mask(int cpu);
+const struct cpumask *cpu_cluster_mask(int cpu);
 
 #ifdef CONFIG_NUMA
 
index 158159c1ee0230bcac7dfe8ce5698da253aeacf8..11f250a31f429a605382682c04612f3d535bad45 100644 (file)
@@ -195,6 +195,11 @@ const struct cpumask *cpu_coregroup_mask(int cpu)
        return &cpu_topology[cpu].core_sibling;
 }
 
+const struct cpumask *cpu_cluster_mask(int cpu)
+{
+       return &cpu_topology[cpu].cluster_sibling;
+}
+
 static void update_siblings_masks(unsigned int cpuid)
 {
        struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid];
@@ -321,6 +326,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_cpu_mask, cpu_flags, cpu_cluster_energy, SD_INIT_NAME(DIE) },
        { cpu_cpu_mask, NULL, cpu_system_energy, SD_INIT_NAME(SYS) },
        { NULL, }