[COMMON] arm64: topology: Add coregroup_id and cluster_sibling
authorDaeyeong Lee <daeyeong.lee@samsung.com>
Mon, 12 Feb 2018 07:12:55 +0000 (16:12 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:51 +0000 (17:30 +0900)
Change-Id: I01ae62a259dd96356b226454d9301fa822ce0eff
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
arch/arm64/include/asm/topology.h

index 13a00ece862bb3f19422612d0ea2dfb98dd68085..4c07803eb3dc4ba57a3fef1b3fb6a32585b8db7f 100644 (file)
@@ -7,15 +7,19 @@
 struct cpu_topology {
        int thread_id;
        int core_id;
+       int coregroup_id;
        int cluster_id;
        cpumask_t thread_sibling;
        cpumask_t core_sibling;
+       cpumask_t cluster_sibling;
 };
 
 extern struct cpu_topology cpu_topology[NR_CPUS];
 
 #define topology_physical_package_id(cpu)      (cpu_topology[cpu].cluster_id)
+#define topology_coregroup_id(cpu)             (cpu_topology[cpu].coregroup_id)
 #define topology_core_id(cpu)          (cpu_topology[cpu].core_id)
+#define topology_cluster_cpumask(cpu)  (&cpu_topology[cpu].cluster_sibling)
 #define topology_core_cpumask(cpu)     (&cpu_topology[cpu].core_sibling)
 #define topology_sibling_cpumask(cpu)  (&cpu_topology[cpu].thread_sibling)