/linux-master/arch/powerpc/include/asm/ |
H A D | cputhreads.h | 23 extern int threads_per_core; 28 #define threads_per_core 1 macro 50 return cpu & (threads_per_core - 1); 60 return cpu & ~(threads_per_core - 1); 65 return cpu | (threads_per_core - 1); 76 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) 84 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) 92 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8))
|
H A D | paravirt.h | 199 for (i = first_cpu; i < first_cpu + threads_per_core; i++) {
|
/linux-master/drivers/virt/nitro_enclaves/ |
H A D | ne_misc_dev.h | 58 * @threads_per_core: Enclave full CPU cores array, indexed by core id, 80 cpumask_var_t *threads_per_core; member in struct:ne_enclave
|
H A D | ne_misc_dev.c | 554 cpumask_set_cpu(cpu, ne_enclave->threads_per_core[core_id]); 586 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) 605 *vcpu_id = cpumask_any(ne_enclave->threads_per_core[core_id]); 670 if (cpumask_test_cpu(vcpu_id, ne_enclave->threads_per_core[i])) 1105 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) 1425 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) 1429 free_cpumask_var(ne_enclave->threads_per_core[i]); 1434 kfree(ne_enclave->threads_per_core); 1632 ne_enclave->threads_per_core = kcalloc(ne_enclave->nr_parent_vm_cores, 1633 sizeof(*ne_enclave->threads_per_core), [all...] |
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | subcore.c | 154 for (i = cpu + 1; i < cpu + threads_per_core; i++) 209 for (i = cpu + 1; i < cpu + threads_per_core; i++) 328 threads_per_subcore = threads_per_core / subcores_per_core; 434 * continue only if max_cpus are aligned to threads_per_core. 436 if (setup_max_cpus % threads_per_core)
|
H A D | idle.c | 320 unsigned long core_thread_mask = (1UL << threads_per_core) - 1; 371 == threads_per_core) 613 unsigned long core_thread_mask = (1UL << threads_per_core) - 1; 822 int need_awake = threads_per_core; 825 cpu0 = cpu & ~(threads_per_core - 1); 826 for (thr = 0; thr < threads_per_core; ++thr) { 832 for (thr = 0; thr < threads_per_core; ++thr) { 842 for (thr = 0; thr < threads_per_core; ++thr) { 851 for (thr = 0; thr < threads_per_core; ++thr) { 868 cpu0 = cpu & ~(threads_per_core [all...] |
/linux-master/arch/powerpc/perf/ |
H A D | imc-pmu.c | 601 int nid, rc = 0, core_id = (cpu / threads_per_core); 638 int core_id = (cpu / threads_per_core); 716 core_id = cpu / threads_per_core; 774 core_id = event->cpu / threads_per_core; 842 core_id = event->cpu / threads_per_core; 1135 core_id = smp_processor_id() / threads_per_core; 1170 core_id = smp_processor_id() / threads_per_core; 1209 int core_id = (cpu_id / threads_per_core); 1360 int core_id = smp_processor_id() / threads_per_core; 1410 int core_id = smp_processor_id() / threads_per_core; [all...] |
H A D | hv-24x7.c | 1724 if (threads_per_core == 8)
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | smp.c | 288 if (threads_per_core == 2) { 319 } else if (threads_per_core == 1) { 326 } else if (threads_per_core > 2) {
|
/linux-master/arch/powerpc/sysdev/ |
H A D | fsl_rcpm.c | 148 if (threads_per_core == 2) { 160 if (threads_per_core == 1)
|
/linux-master/arch/powerpc/kvm/ |
H A D | e500mc.c | 358 if (threads_per_core == 2) 369 if (threads_per_core == 2) 410 kvmppc_init_lpid(KVMPPC_NR_LPIDS/threads_per_core);
|
H A D | e500.h | 299 if (threads_per_core == 2)
|
H A D | book3s_hv.c | 5487 for (cpu = 0; cpu < nr_cpu_ids; cpu += threads_per_core) { 6403 int first_cpu = i * threads_per_core; 6417 for (j = 0; j < threads_per_core; j++) {
|
/linux-master/arch/powerpc/kernel/ |
H A D | setup_64.c | 134 smt_enabled_at_boot = threads_per_core; 139 smt_enabled_at_boot = threads_per_core; 149 min(threads_per_core, smt); 159 smt_enabled_at_boot = threads_per_core;
|
H A D | smp.c | 928 for (i = first_thread; i < first_thread + threads_per_core; i++) { 1146 int idx = DIV_ROUND_UP(num_possible_cpus(), threads_per_core); 1166 cpu_smt_set_num_threads(num_threads, threads_per_core); 1282 if (threads_per_core > 1 && secondaries_inhibited() && 1576 for (i = first_thread; i < first_thread + threads_per_core; i++) 1752 return -cpu / threads_per_core;
|
H A D | setup-common.c | 383 int threads_per_core, threads_per_subcore, threads_shift __read_mostly; variable 385 EXPORT_SYMBOL_GPL(threads_per_core); variable 394 threads_per_core = tpc;
|
H A D | prom.c | 382 pr_warn("nr_cpu_ids was not a multiple of threads_per_core, adjusted to %d\n", 998 idx = cpu / threads_per_core;
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | lpar.c | 209 vcpu_associativity = kcalloc(num_possible_cpus() / threads_per_core, 211 pcpu_associativity = kcalloc(NR_CPUS_H / threads_per_core, 234 assoc = &cpu_assoc[(int)(cpu / threads_per_core) * VPHN_ASSOC_BUFSIZE];
|
/linux-master/tools/power/x86/turbostat/ |
H A D | turbostat.c | 1226 topo.nodes_per_pkg * topo.cores_per_node * topo.threads_per_core) + \ 1227 ((node_no) * topo.cores_per_node * topo.threads_per_core) + \ 1228 ((core_no) * topo.threads_per_core) + \ 1421 int threads_per_core; member in struct:topo_params 1458 for (thread_no = 0; thread_no < topo.threads_per_core; ++thread_no) { 4471 for (thread_no = 0; thread_no < topo.threads_per_core; ++thread_no) { 7132 topo.threads_per_core = max_siblings; 7154 int num_threads = topo.threads_per_core * num_cores;
|
/linux-master/drivers/cpufreq/ |
H A D | powernv-cpufreq.c | 836 for (i = 0; i < threads_per_core; i++)
|
/linux-master/arch/powerpc/mm/ |
H A D | numa.c | 775 for (i = 0; i < threads_per_core; i++) {
|