[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:07 +0000 (20:22 +0300)
Change-Id: I01ae62a259dd96356b226454d9301fa822ce0eff
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
arch/arm64/include/asm/topology.h

index b7bd70520a772e435a80d2677cf02d7fd3e7d560..2bd28edefb1019e012a4ffc6d10f4991abfc2ded 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)