From: Daeyeong Lee Date: Mon, 12 Feb 2018 07:12:55 +0000 (+0900) Subject: [COMMON] arm64: topology: Add coregroup_id and cluster_sibling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0909600c3b12d80180a9d9f6c4688e4a58b1a5f7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] arm64: topology: Add coregroup_id and cluster_sibling Change-Id: I01ae62a259dd96356b226454d9301fa822ce0eff Signed-off-by: Daeyeong Lee --- 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)