Searched refs:core_bits (Results 1 – 2 of 2) sorted by relevance
| /netbsd/src/sys/arch/x86/x86/ |
| D | cpu_topology.c | 81 int n, cpu_family, apic_id, smt_bits, core_bits = 0; in x86_cpu_topology() local 156 core_bits = n; in x86_cpu_topology() 165 if (core_bits == 0) { in x86_cpu_topology() 166 core_bits = ilog2(core_max - 1) + 1; in x86_cpu_topology() 183 (apic_id >> core_bits) | (node_id << core_bits) : in x86_cpu_topology() 196 KASSERT(smt_bits <= core_bits); in x86_cpu_topology() 197 core_bits -= smt_bits; in x86_cpu_topology() 200 if (smt_bits + core_bits) { in x86_cpu_topology() 201 if (smt_bits + core_bits < sizeof(apic_id) * NBBY) in x86_cpu_topology() 202 package_id = apic_id >> (smt_bits + core_bits); in x86_cpu_topology() [all …]
|
| /netbsd/src/usr.sbin/cpuctl/arch/ |
| D | i386.c | 1775 u_int smt_bits, core_bits; in identifycpu_cpuids_intel_0x04() local 1792 core_bits = ilog2(core_max - 1) + 1; in identifycpu_cpuids_intel_0x04() 1794 if (smt_bits + core_bits) in identifycpu_cpuids_intel_0x04() 1795 ci->ci_packageid = ci->ci_initapicid >> (smt_bits + core_bits); in identifycpu_cpuids_intel_0x04() 1797 if (core_bits) in identifycpu_cpuids_intel_0x04() 1799 __BITS(smt_bits, smt_bits + core_bits - 1)); in identifycpu_cpuids_intel_0x04() 1810 u_int smt_bits, core_bits, core_shift = 0, pkg_shift = 0; in identifycpu_cpuids_intel_0x0b() local 1849 core_bits = pkg_shift - core_shift; in identifycpu_cpuids_intel_0x0b() 1853 if (core_bits) in identifycpu_cpuids_intel_0x0b() 1883 int n, cpu_family, apic_id, smt_bits, core_bits = 0; in identifycpu_cpuids_amd() local [all …]
|