Change-Id: I01ae62a259dd96356b226454d9301fa822ce0eff
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
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)