Home
last modified time | relevance | path

Searched refs:mach_topology (Results 1 – 2 of 2) sorted by relevance

/external/cpuinfo/src/x86/mach/
Dinit.c31 struct cpuinfo_mach_topology mach_topology = cpuinfo_mach_detect_topology(); in cpuinfo_x86_mach_init() local
32 processors = calloc(mach_topology.threads, sizeof(struct cpuinfo_processor)); in cpuinfo_x86_mach_init()
35 mach_topology.threads * sizeof(struct cpuinfo_processor), mach_topology.threads); in cpuinfo_x86_mach_init()
38 cores = calloc(mach_topology.cores, sizeof(struct cpuinfo_core)); in cpuinfo_x86_mach_init()
41 mach_topology.cores * sizeof(struct cpuinfo_core), mach_topology.cores); in cpuinfo_x86_mach_init()
45 clusters = calloc(mach_topology.packages, sizeof(struct cpuinfo_cluster)); in cpuinfo_x86_mach_init()
48 mach_topology.packages * sizeof(struct cpuinfo_cluster), mach_topology.packages); in cpuinfo_x86_mach_init()
51 packages = calloc(mach_topology.packages, sizeof(struct cpuinfo_package)); in cpuinfo_x86_mach_init()
54 mach_topology.packages * sizeof(struct cpuinfo_package), mach_topology.packages); in cpuinfo_x86_mach_init()
64 const uint32_t threads_per_core = mach_topology.threads / mach_topology.cores; in cpuinfo_x86_mach_init()
[all …]
/external/cpuinfo/src/arm/mach/
Dinit.c266 struct cpuinfo_mach_topology mach_topology = cpuinfo_mach_detect_topology(); in cpuinfo_arm_mach_init() local
267 processors = calloc(mach_topology.threads, sizeof(struct cpuinfo_processor)); in cpuinfo_arm_mach_init()
270 mach_topology.threads * sizeof(struct cpuinfo_processor), mach_topology.threads); in cpuinfo_arm_mach_init()
273 cores = calloc(mach_topology.cores, sizeof(struct cpuinfo_core)); in cpuinfo_arm_mach_init()
276 mach_topology.cores * sizeof(struct cpuinfo_core), mach_topology.cores); in cpuinfo_arm_mach_init()
279 packages = calloc(mach_topology.packages, sizeof(struct cpuinfo_package)); in cpuinfo_arm_mach_init()
282 mach_topology.packages * sizeof(struct cpuinfo_package), mach_topology.packages); in cpuinfo_arm_mach_init()
286 const uint32_t threads_per_core = mach_topology.threads / mach_topology.cores; in cpuinfo_arm_mach_init()
287 const uint32_t threads_per_package = mach_topology.threads / mach_topology.packages; in cpuinfo_arm_mach_init()
288 const uint32_t cores_per_package = mach_topology.cores / mach_topology.packages; in cpuinfo_arm_mach_init()
[all …]