Home
last modified time | relevance | path

Searched refs:threads_per_core (Results 1 - 25 of 48) sorted by relevance

12

/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dcputhreads.h23 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()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dcputhreads.h23 extern int threads_per_core;
28 #define threads_per_core 1 macro
52 for (i = 0; i < NR_CPUS; i += threads_per_core) { in cpu_thread_mask_to_cores()
83 return cpu & (threads_per_core - 1); in cpu_thread_in_core()
93 return cpu & ~(threads_per_core - 1); in cpu_first_thread_sibling()
98 return cpu | (threads_per_core - 1); in cpu_last_thread_sibling()
109 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_first_tlb_thread_sibling()
117 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_last_tlb_thread_sibling()
125 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_tlb_thread_sibling_step()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Didle.c318 unsigned long core_thread_mask = (1UL << threads_per_core) - 1; in power7_idle_insn()
369 == threads_per_core) in power7_idle_insn()
610 unsigned long core_thread_mask = (1UL << threads_per_core) - 1; in power9_idle_stop()
823 int need_awake = threads_per_core; in pnv_power9_force_smt4_catch()
826 cpu0 = cpu & ~(threads_per_core - 1); in pnv_power9_force_smt4_catch()
827 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
833 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
843 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
852 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
869 cpu0 = cpu & ~(threads_per_core in pnv_power9_force_smt4_release()
[all...]
H A Dsubcore.c152 for (i = cpu + 1; i < cpu + threads_per_core; i++) in wait_for_sync_step()
197 for (i = cpu + 1; i < cpu + threads_per_core; i++) in unsplit_core()
316 threads_per_subcore = threads_per_core / subcores_per_core; in cpu_update_split_mode()
419 * continue only if max_cpus are aligned to threads_per_core. in subcore_init()
421 if (setup_max_cpus % threads_per_core) in subcore_init()
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Didle.c320 unsigned long core_thread_mask = (1UL << threads_per_core) - 1; in power7_idle_insn()
371 == threads_per_core) in power7_idle_insn()
613 unsigned long core_thread_mask = (1UL << threads_per_core) - 1; in power9_idle_stop()
822 int need_awake = threads_per_core; in pnv_power9_force_smt4_catch()
825 cpu0 = cpu & ~(threads_per_core - 1); in pnv_power9_force_smt4_catch()
826 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
832 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
842 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
851 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
868 cpu0 = cpu & ~(threads_per_core in pnv_power9_force_smt4_release()
[all...]
H A Dsubcore.c154 for (i = cpu + 1; i < cpu + threads_per_core; i++) in wait_for_sync_step()
209 for (i = cpu + 1; i < cpu + threads_per_core; i++) in unsplit_core()
328 threads_per_subcore = threads_per_core / subcores_per_core; in cpu_update_split_mode()
433 * continue only if max_cpus are aligned to threads_per_core. in subcore_init()
435 if (setup_max_cpus % threads_per_core) in subcore_init()
/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/
H A Dne_misc_dev.c543 cpumask_set_cpu(cpu, ne_enclave->threads_per_core[core_id]); in ne_set_enclave_threads_per_core()
575 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_get_cpu_from_cpu_pool()
594 *vcpu_id = cpumask_any(ne_enclave->threads_per_core[core_id]); in ne_get_cpu_from_cpu_pool()
659 if (cpumask_test_cpu(vcpu_id, ne_enclave->threads_per_core[i])) in ne_check_cpu_in_cpu_pool()
1049 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_start_enclave_ioctl()
1369 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_enclave_remove_all_vcpu_id_entries()
1373 free_cpumask_var(ne_enclave->threads_per_core[i]); in ne_enclave_remove_all_vcpu_id_entries()
1378 kfree(ne_enclave->threads_per_core); in ne_enclave_remove_all_vcpu_id_entries()
1576 ne_enclave->threads_per_core = kcalloc(ne_enclave->nr_parent_vm_cores, in ne_create_vm_ioctl()
1577 sizeof(*ne_enclave->threads_per_core), GFP_KERNE in ne_create_vm_ioctl()
[all...]
H A Dne_misc_dev.h58 * @threads_per_core: Enclave full CPU cores array, indexed by core id,
80 cpumask_var_t *threads_per_core; member
/kernel/linux/linux-6.6/drivers/virt/nitro_enclaves/
H A Dne_misc_dev.c554 cpumask_set_cpu(cpu, ne_enclave->threads_per_core[core_id]); in ne_set_enclave_threads_per_core()
586 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_get_cpu_from_cpu_pool()
605 *vcpu_id = cpumask_any(ne_enclave->threads_per_core[core_id]); in ne_get_cpu_from_cpu_pool()
670 if (cpumask_test_cpu(vcpu_id, ne_enclave->threads_per_core[i])) in ne_check_cpu_in_cpu_pool()
1105 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_start_enclave_ioctl()
1425 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_enclave_remove_all_vcpu_id_entries()
1429 free_cpumask_var(ne_enclave->threads_per_core[i]); in ne_enclave_remove_all_vcpu_id_entries()
1434 kfree(ne_enclave->threads_per_core); in ne_enclave_remove_all_vcpu_id_entries()
1632 ne_enclave->threads_per_core = kcalloc(ne_enclave->nr_parent_vm_cores, in ne_create_vm_ioctl()
1633 sizeof(*ne_enclave->threads_per_core), in ne_create_vm_ioctl()
[all...]
H A Dne_misc_dev.h58 * @threads_per_core: Enclave full CPU cores array, indexed by core id,
80 cpumask_var_t *threads_per_core; member
/kernel/linux/linux-5.10/arch/powerpc/perf/
H A Dimc-pmu.c594 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init()
631 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited()
709 core_id = cpu / threads_per_core; in ppc_core_imc_cpu_offline()
767 core_id = event->cpu / threads_per_core; in core_imc_counters_release()
835 core_id = event->cpu / threads_per_core; in core_imc_event_init()
1127 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_add()
1162 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_del()
1201 int core_id = (cpu_id / threads_per_core); in trace_imc_mem_alloc()
1352 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_add()
1402 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_del()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/perf/
H A Dimc-pmu.c601 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init()
638 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited()
716 core_id = cpu / threads_per_core; in ppc_core_imc_cpu_offline()
774 core_id = event->cpu / threads_per_core; in core_imc_counters_release()
842 core_id = event->cpu / threads_per_core; in core_imc_event_init()
1134 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_add()
1169 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_del()
1208 int core_id = (cpu_id / threads_per_core); in trace_imc_mem_alloc()
1359 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_add()
1409 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_del()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/85xx/
H A Dsmp.c288 if (threads_per_core == 2) { in smp_85xx_kick_cpu()
319 } else if (threads_per_core == 1) { in smp_85xx_kick_cpu()
326 } else if (threads_per_core > 2) { in smp_85xx_kick_cpu()
/kernel/linux/linux-6.6/arch/powerpc/platforms/85xx/
H A Dsmp.c288 if (threads_per_core == 2) { in smp_85xx_kick_cpu()
319 } else if (threads_per_core == 1) { in smp_85xx_kick_cpu()
326 } else if (threads_per_core > 2) { in smp_85xx_kick_cpu()
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Dsetup_64.c134 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
139 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
149 min(threads_per_core, smt); in check_smt_enabled()
159 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dsetup_64.c133 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
138 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
148 min(threads_per_core, smt); in check_smt_enabled()
158 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
H A Dsetup-common.c393 int threads_per_core, threads_per_subcore, threads_shift __read_mostly; variable
395 EXPORT_SYMBOL_GPL(threads_per_core); variable
404 threads_per_core = tpc; in cpu_init_thread_core_maps()
/kernel/linux/linux-5.10/arch/ia64/kernel/
H A Dsmpboot.c580 if (cpu_data(cpu)->threads_per_core == 1 && in remove_siblinginfo()
738 if (cpu_data(cpu)->threads_per_core == 1 && in __cpu_up()
813 c->threads_per_core = info.overview_tpc; in identify_siblings()
H A Dsetup.c727 if (c->threads_per_core > 1 || c->cores_per_socket > 1) in show_cpuinfo()
839 c->threads_per_core = c->cores_per_socket = c->num_log = 1; in identify_cpu()
844 if (c->threads_per_core > smp_num_siblings) in identify_cpu()
845 smp_num_siblings = c->threads_per_core; in identify_cpu()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A De500mc.c353 if (threads_per_core == 2) in kvmppc_core_init_vm_e500mc()
364 if (threads_per_core == 2) in kvmppc_core_destroy_vm_e500mc()
400 kvmppc_init_lpid(KVMPPC_NR_LPIDS/threads_per_core); in kvmppc_e500mc_init()
/kernel/linux/linux-6.6/arch/ia64/kernel/
H A Dsmpboot.c579 if (cpu_data(cpu)->threads_per_core == 1 && in remove_siblinginfo()
735 if (cpu_data(cpu)->threads_per_core == 1 && in __cpu_up()
810 c->threads_per_core = info.overview_tpc; in identify_siblings()
H A Dsetup.c723 if (c->threads_per_core > 1 || c->cores_per_socket > 1) in show_cpuinfo()
835 c->threads_per_core = c->cores_per_socket = c->num_log = 1; in identify_cpu()
840 if (c->threads_per_core > smp_num_siblings) in identify_cpu()
841 smp_num_siblings = c->threads_per_core; in identify_cpu()
/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A De500mc.c358 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()
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
H A Dfsl_rcpm.c148 if (threads_per_core == 2) { in rcpm_v2_cpu_die()
160 if (threads_per_core == 1) in rcpm_v2_cpu_die()
/kernel/linux/linux-6.6/arch/powerpc/sysdev/
H A Dfsl_rcpm.c148 if (threads_per_core == 2) { in rcpm_v2_cpu_die()
160 if (threads_per_core == 1) in rcpm_v2_cpu_die()

Completed in 25 milliseconds

12