• Home
  • Raw
  • Download

Lines Matching refs:mach_topology

31 	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()
65 const uint32_t threads_per_package = mach_topology.threads / mach_topology.packages; in cpuinfo_x86_mach_init()
66 const uint32_t cores_per_package = mach_topology.cores / mach_topology.packages; in cpuinfo_x86_mach_init()
67 for (uint32_t i = 0; i < mach_topology.packages; i++) { in cpuinfo_x86_mach_init()
87 for (uint32_t i = 0; i < mach_topology.cores; i++) { in cpuinfo_x86_mach_init()
99 for (uint32_t i = 0; i < mach_topology.threads; i++) { in cpuinfo_x86_mach_init()
125 threads_per_l1 = mach_topology.threads_per_cache[1]; in cpuinfo_x86_mach_init()
128 threads_per_l1 = mach_topology.threads / mach_topology.cores; in cpuinfo_x86_mach_init()
132 l1_count = mach_topology.threads / threads_per_l1; in cpuinfo_x86_mach_init()
138 threads_per_l2 = mach_topology.threads_per_cache[2]; in cpuinfo_x86_mach_init()
142 threads_per_l2 = mach_topology.threads / mach_topology.cores; in cpuinfo_x86_mach_init()
145 threads_per_l2 = mach_topology.threads / mach_topology.packages; in cpuinfo_x86_mach_init()
150 l2_count = mach_topology.threads / threads_per_l2; in cpuinfo_x86_mach_init()
156 threads_per_l3 = mach_topology.threads_per_cache[3]; in cpuinfo_x86_mach_init()
162 threads_per_l3 = mach_topology.threads / mach_topology.packages; in cpuinfo_x86_mach_init()
166 l3_count = mach_topology.threads / threads_per_l3; in cpuinfo_x86_mach_init()
172 threads_per_l4 = mach_topology.threads_per_cache[4]; in cpuinfo_x86_mach_init()
179 threads_per_l4 = mach_topology.threads; in cpuinfo_x86_mach_init()
183 l4_count = mach_topology.threads / threads_per_l4; in cpuinfo_x86_mach_init()
206 for (uint32_t t = 0; t < mach_topology.threads; t++) { in cpuinfo_x86_mach_init()
230 for (uint32_t t = 0; t < mach_topology.threads; t++) { in cpuinfo_x86_mach_init()
254 for (uint32_t t = 0; t < mach_topology.threads; t++) { in cpuinfo_x86_mach_init()
278 for (uint32_t t = 0; t < mach_topology.threads; t++) { in cpuinfo_x86_mach_init()
302 for (uint32_t t = 0; t < mach_topology.threads; t++) { in cpuinfo_x86_mach_init()
318 cpuinfo_processors_count = mach_topology.threads; in cpuinfo_x86_mach_init()
319 cpuinfo_cores_count = mach_topology.cores; in cpuinfo_x86_mach_init()
320 cpuinfo_clusters_count = mach_topology.packages; in cpuinfo_x86_mach_init()
321 cpuinfo_packages_count = mach_topology.packages; in cpuinfo_x86_mach_init()
332 .processor_count = mach_topology.threads, in cpuinfo_x86_mach_init()
333 .core_count = mach_topology.cores, in cpuinfo_x86_mach_init()