From 0909600c3b12d80180a9d9f6c4688e4a58b1a5f7 Mon Sep 17 00:00:00 2001 From: Daeyeong Lee Date: Mon, 12 Feb 2018 16:12:55 +0900 Subject: [PATCH] [COMMON] arm64: topology: Add coregroup_id and cluster_sibling Change-Id: I01ae62a259dd96356b226454d9301fa822ce0eff Signed-off-by: Daeyeong Lee --- arch/arm64/include/asm/topology.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h index 13a00ece862b..4c07803eb3dc 100644 --- a/arch/arm64/include/asm/topology.h +++ b/arch/arm64/include/asm/topology.h @@ -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) -- 2.20.1