| /Linux-v5.4/arch/powerpc/include/asm/ |
| D | cputhreads.h | 23 extern int threads_per_core; 29 #define threads_per_core 1 macro 53 for (i = 0; i < NR_CPUS; i += threads_per_core) { in cpu_thread_mask_to_cores() 84 return cpu & (threads_per_core - 1); in cpu_thread_in_core() 94 return cpu & ~(threads_per_core - 1); in cpu_first_thread_sibling() 99 return cpu | (threads_per_core - 1); in cpu_last_thread_sibling()
|
| /Linux-v5.4/arch/powerpc/platforms/powernv/ |
| D | subcore.c | 152 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() 421 if (setup_max_cpus % threads_per_core) in subcore_init()
|
| D | idle.c | 318 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() 890 int need_awake = threads_per_core; in pnv_power9_force_smt4_catch() 893 cpu0 = cpu & ~(threads_per_core - 1); in pnv_power9_force_smt4_catch() 894 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch() 900 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch() 910 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch() 919 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch() 936 cpu0 = cpu & ~(threads_per_core - 1); in pnv_power9_force_smt4_release() [all …]
|
| /Linux-v5.4/arch/powerpc/perf/ |
| D | imc-pmu.c | 578 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init() 616 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited() 695 core_id = cpu / threads_per_core; in ppc_core_imc_cpu_offline() 726 core_id = event->cpu / threads_per_core; in core_imc_counters_release() 792 core_id = event->cpu / threads_per_core; in core_imc_event_init() 1031 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_add() 1068 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_del() 1099 int core_id = (cpu_id / threads_per_core); in trace_imc_mem_alloc() 1221 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_add() 1274 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_del() [all …]
|
| D | hv-24x7.c | 1589 if (threads_per_core == 8) in hv_24x7_init()
|
| /Linux-v5.4/arch/powerpc/platforms/85xx/ |
| D | smp.c | 279 if (threads_per_core == 2) { in smp_85xx_kick_cpu() 310 } else if (threads_per_core == 1) { in smp_85xx_kick_cpu() 317 } else if (threads_per_core > 2) { in smp_85xx_kick_cpu()
|
| /Linux-v5.4/arch/powerpc/kernel/ |
| D | setup_64.c | 137 smt_enabled_at_boot = threads_per_core; in check_smt_enabled() 142 smt_enabled_at_boot = threads_per_core; in check_smt_enabled() 152 min(threads_per_core, smt); in check_smt_enabled() 162 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
|
| D | setup-common.c | 396 int threads_per_core, threads_per_subcore, threads_shift __read_mostly; variable 398 EXPORT_SYMBOL_GPL(threads_per_core); 407 threads_per_core = tpc; in cpu_init_thread_core_maps()
|
| D | smp.c | 803 for (i = first_thread; i < first_thread + threads_per_core; i++) { in init_cpu_l1_cache_map() 996 if (threads_per_core > 1 && secondaries_inhibited() && in __cpu_up() 1182 for (i = first_thread; i < first_thread + threads_per_core; i++) { in add_cpu_to_smallcore_masks() 1200 for (i = first_thread; i < first_thread + threads_per_core; i++) in add_cpu_to_masks()
|
| /Linux-v5.4/arch/powerpc/kvm/ |
| D | e500mc.c | 371 if (threads_per_core == 2) in kvmppc_core_init_vm_e500mc() 382 if (threads_per_core == 2) in kvmppc_core_destroy_vm_e500mc() 419 kvmppc_init_lpid(KVMPPC_NR_LPIDS/threads_per_core); in kvmppc_e500mc_init()
|
| D | e500.h | 299 if (threads_per_core == 2) in get_thread_specific_lpid()
|
| D | book3s_hv_builtin.c | 341 for (t = 1; t < threads_per_core; ++t) { in kvmhv_commence_exit()
|
| D | book3s_hv.c | 2551 for (i = 0; i < threads_per_core; ++i) in radix_flush_cpu() 4737 for (cpu = 0; cpu < nr_cpu_ids; cpu += threads_per_core) { in kvmppc_alloc_host_rm_ops() 5448 int first_cpu = i * threads_per_core; in kvm_init_subcore_bitmap() 5462 for (j = 0; j < threads_per_core; j++) { in kvm_init_subcore_bitmap()
|
| /Linux-v5.4/arch/powerpc/sysdev/ |
| 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-v5.4/arch/ia64/kernel/ |
| D | setup.c | 729 if (c->threads_per_core > 1 || c->cores_per_socket > 1) in show_cpuinfo() 841 c->threads_per_core = c->cores_per_socket = c->num_log = 1; in identify_cpu() 846 if (c->threads_per_core > smp_num_siblings) in identify_cpu() 847 smp_num_siblings = c->threads_per_core; in identify_cpu()
|
| D | smpboot.c | 591 if (cpu_data(cpu)->threads_per_core == 1 && in remove_siblinginfo() 749 if (cpu_data(cpu)->threads_per_core == 1 && in __cpu_up() 824 c->threads_per_core = info.overview_tpc; in identify_siblings()
|
| D | topology.c | 145 if (cpu_data(cpu)->threads_per_core <= 1 && in cache_shared_cpu_map_setup()
|
| /Linux-v5.4/arch/powerpc/platforms/pseries/ |
| D | lpar.c | 205 vcpu_associativity = kcalloc(num_possible_cpus() / threads_per_core, in init_cpu_associativity() 207 pcpu_associativity = kcalloc(NR_CPUS_H / threads_per_core, in init_cpu_associativity() 230 assoc = &cpu_assoc[(int)(cpu / threads_per_core) * VPHN_ASSOC_BUFSIZE]; in __get_cpu_associativity()
|
| /Linux-v5.4/arch/powerpc/mm/ |
| D | numa.c | 512 for (i = 0; i < threads_per_core; i++) { in verify_cpu_node_mapping() 1302 for (j = 0; j < threads_per_core; j++) { in update_lookup_table()
|
| /Linux-v5.4/arch/ia64/include/asm/ |
| D | processor.h | 214 unsigned char threads_per_core; /* Threads per core */ member
|
| /Linux-v5.4/tools/power/x86/turbostat/ |
| D | turbostat.c | 230 topo.nodes_per_pkg * topo.cores_per_node * topo.threads_per_core) + \ 231 ((node_no) * topo.cores_per_node * topo.threads_per_core) + \ 232 ((core_no) * topo.threads_per_core) + \ 297 int threads_per_core; member 325 topo.threads_per_core; ++thread_no) { in for_all_cpus() 2692 topo.threads_per_core; ++thread_no) { in for_all_cpus_2() 5060 topo.threads_per_core = max_siblings; in topology_probe() 5088 int num_threads = topo.threads_per_core * num_cores; in allocate_counters()
|
| /Linux-v5.4/drivers/cpufreq/ |
| D | powernv-cpufreq.c | 834 for (i = 0; i < threads_per_core; i++) in powernv_cpufreq_cpu_init()
|