Searched refs:threads_per_core (Results 1 – 12 of 12) sorted by relevance
| /linux/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); in cpu_thread_in_core() 60 return cpu & ~(threads_per_core - 1); in cpu_first_thread_sibling() 65 return cpu | (threads_per_core - 1); in cpu_last_thread_sibling() 76 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_first_tlb_thread_sibling() 84 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_last_tlb_thread_sibling() 92 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_tlb_thread_sibling_step()
|
| /linux/drivers/virt/nitro_enclaves/ |
| H A D | ne_misc_dev.c | 553 cpumask_set_cpu(cpu, ne_enclave->threads_per_core[core_id]); in ne_set_enclave_threads_per_core() 585 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_get_cpu_from_cpu_pool() 604 *vcpu_id = cpumask_any(ne_enclave->threads_per_core[core_id]); in ne_get_cpu_from_cpu_pool() 669 if (cpumask_test_cpu(vcpu_id, ne_enclave->threads_per_core[i])) in ne_check_cpu_in_cpu_pool() 1102 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_start_enclave_ioctl() 1422 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_enclave_remove_all_vcpu_id_entries() 1426 free_cpumask_var(ne_enclave->threads_per_core[i]); in ne_enclave_remove_all_vcpu_id_entries() 1431 kfree(ne_enclave->threads_per_core); in ne_enclave_remove_all_vcpu_id_entries() 1629 ne_enclave->threads_per_core = kzalloc_objs(*ne_enclave->threads_per_core, in ne_create_vm_ioctl() 1631 if (!ne_enclave->threads_per_core) { in ne_create_vm_ioctl() [all …]
|
| H A D | ne_misc_dev.h | 80 cpumask_var_t *threads_per_core; member
|
| /linux/arch/powerpc/perf/ |
| H A D | imc-pmu.c | 600 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init() 637 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited() 714 core_id = cpu / threads_per_core; in ppc_core_imc_cpu_offline() 772 core_id = event->cpu / threads_per_core; in core_imc_counters_release() 840 core_id = event->cpu / threads_per_core; in core_imc_event_init() 1130 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_add() 1165 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_del() 1204 int core_id = (cpu_id / threads_per_core); in trace_imc_mem_alloc() 1355 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_add() 1405 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_del() [all …]
|
| H A D | hv-24x7.c | 1708 if (threads_per_core == 8) in hv_24x7_init()
|
| /linux/arch/powerpc/kernel/ |
| H A D | setup_64.c | 134 smt_enabled_at_boot = threads_per_core; in check_smt_enabled() 139 smt_enabled_at_boot = threads_per_core; in check_smt_enabled() 146 min(threads_per_core, smt); in check_smt_enabled() 156 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
|
| /linux/arch/loongarch/kernel/ |
| H A D | smp.c | 368 int threads_per_core = 0; in loongson_prepare_cpus() local 374 threads_per_core = 1; in loongson_prepare_cpus() 380 threads_per_core++; in loongson_prepare_cpus() 390 cpu_smt_set_num_threads(threads_per_core, threads_per_core); in loongson_prepare_cpus()
|
| /linux/arch/powerpc/kvm/ |
| H A D | e500mc.c | 358 if (threads_per_core == 2) in kvmppc_core_init_vm_e500mc() 369 if (threads_per_core == 2) in kvmppc_core_destroy_vm_e500mc() 410 kvmppc_init_lpid(KVMPPC_NR_LPIDS/threads_per_core); in kvmppc_e500mc_init()
|
| H A D | e500.h | 297 if (threads_per_core == 2) in get_thread_specific_lpid()
|
| /linux/arch/powerpc/sysdev/ |
| H A D | fsl_rcpm.c | 148 if (threads_per_core == 2) { in rcpm_v2_cpu_die() 160 if (threads_per_core == 1) in rcpm_v2_cpu_die()
|
| /linux/drivers/cpufreq/ |
| H A D | powernv-cpufreq.c | 836 for (i = 0; i < threads_per_core; i++) in powernv_cpufreq_cpu_init()
|
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 2419 int threads_per_core; member 9733 topo.threads_per_core = max_siblings; in topology_probe()
|