Home
last modified time | relevance | path

Searched refs:threads_per_core (Results 1 – 21 of 21) sorted by relevance

/Linux-v4.19/arch/powerpc/include/asm/
Dcputhreads.h23 extern int threads_per_core;
28 #define threads_per_core 1 macro
51 for (i = 0; i < NR_CPUS; i += threads_per_core) { in cpu_thread_mask_to_cores()
82 return cpu & (threads_per_core - 1); in cpu_thread_in_core()
92 return cpu & ~(threads_per_core - 1); in cpu_first_thread_sibling()
97 return cpu | (threads_per_core - 1); in cpu_last_thread_sibling()
/Linux-v4.19/arch/powerpc/platforms/powernv/
Didle.c167 int first_cpu = i * threads_per_core; in pnv_alloc_idle_core_states()
172 *core_idle_state = (1 << threads_per_core) - 1; in pnv_alloc_idle_core_states()
173 paca_ptr_array_size = (threads_per_core * in pnv_alloc_idle_core_states()
176 for (j = 0; j < threads_per_core; j++) { in pnv_alloc_idle_core_states()
403 int need_awake = threads_per_core; in pnv_power9_force_smt4_catch()
406 cpu0 = cpu & ~(threads_per_core - 1); in pnv_power9_force_smt4_catch()
407 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
413 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
423 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
432 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
[all …]
Dsubcore.c156 for (i = cpu + 1; i < cpu + threads_per_core; i++) in wait_for_sync_step()
201 for (i = cpu + 1; i < cpu + threads_per_core; i++) in unsplit_core()
320 threads_per_subcore = threads_per_core / subcores_per_core; in cpu_update_split_mode()
425 if (setup_max_cpus % threads_per_core) in subcore_init()
/Linux-v4.19/arch/powerpc/perf/
Dimc-pmu.c555 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init()
591 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited()
667 core_id = cpu / threads_per_core; in ppc_core_imc_cpu_offline()
698 core_id = event->cpu / threads_per_core; in core_imc_counters_release()
773 core_id = event->cpu / threads_per_core; in core_imc_event_init()
1005 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_add()
1043 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_del()
1144 int i, nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core); in cleanup_all_core_imc_memory()
1272 nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core); in imc_mem_init()
Dhv-24x7.c1601 if (threads_per_core == 8) in hv_24x7_init()
/Linux-v4.19/arch/powerpc/platforms/85xx/
Dsmp.c283 if (threads_per_core == 2) { in smp_85xx_kick_cpu()
314 } else if (threads_per_core == 1) { in smp_85xx_kick_cpu()
321 } else if (threads_per_core > 2) { in smp_85xx_kick_cpu()
/Linux-v4.19/arch/powerpc/kernel/
Dsetup_64.c141 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
146 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
156 min(threads_per_core, smt); in check_smt_enabled()
166 smt_enabled_at_boot = threads_per_core; in check_smt_enabled()
Dsetup-common.c404 int threads_per_core, threads_per_subcore, threads_shift; variable
406 EXPORT_SYMBOL_GPL(threads_per_core);
415 threads_per_core = tpc; in cpu_init_thread_core_maps()
Dsmp.c828 if (threads_per_core > 1 && secondaries_inhibited() && in __cpu_up()
1014 for (i = first_thread; i < first_thread + threads_per_core; i++) in add_cpu_to_masks()
/Linux-v4.19/arch/powerpc/kvm/
De500mc.c374 if (threads_per_core == 2) in kvmppc_core_init_vm_e500mc()
385 if (threads_per_core == 2) in kvmppc_core_destroy_vm_e500mc()
422 kvmppc_init_lpid(KVMPPC_NR_LPIDS/threads_per_core); in kvmppc_e500mc_init()
De500.h302 if (threads_per_core == 2) in get_thread_specific_lpid()
Dbook3s_hv_builtin.c335 for (t = 1; t < threads_per_core; ++t) { in kvmhv_commence_exit()
Dbook3s_hv.c2255 for (i = 0; i < threads_per_core; ++i) in radix_flush_cpu()
3884 for (cpu = 0; cpu < nr_cpu_ids; cpu += threads_per_core) { in kvmppc_alloc_host_rm_ops()
4509 int first_cpu = i * threads_per_core; in kvm_init_subcore_bitmap()
4525 for (j = 0; j < threads_per_core; j++) { in kvm_init_subcore_bitmap()
/Linux-v4.19/arch/powerpc/sysdev/
Dfsl_rcpm.c152 if (threads_per_core == 2) { in rcpm_v2_cpu_die()
164 if (threads_per_core == 1) in rcpm_v2_cpu_die()
/Linux-v4.19/arch/ia64/kernel/
Dsetup.c705 if (c->threads_per_core > 1 || c->cores_per_socket > 1) in show_cpuinfo()
817 c->threads_per_core = c->cores_per_socket = c->num_log = 1; in identify_cpu()
822 if (c->threads_per_core > smp_num_siblings) in identify_cpu()
823 smp_num_siblings = c->threads_per_core; in identify_cpu()
Dsmpboot.c592 if (cpu_data(cpu)->threads_per_core == 1 && in remove_siblinginfo()
755 if (cpu_data(cpu)->threads_per_core == 1 && in __cpu_up()
830 c->threads_per_core = info.overview_tpc; in identify_siblings()
Dtopology.c149 if (cpu_data(cpu)->threads_per_core <= 1 && in cache_shared_cpu_map_setup()
/Linux-v4.19/arch/powerpc/mm/
Dnuma.c500 for (i = 0; i < threads_per_core; i++) { in verify_cpu_node_mapping()
1289 for (j = 0; j < threads_per_core; j++) { in update_lookup_table()
/Linux-v4.19/arch/ia64/include/asm/
Dprocessor.h214 unsigned char threads_per_core; /* Threads per core */ member
/Linux-v4.19/tools/power/x86/turbostat/
Dturbostat.c225 topo.nodes_per_pkg * topo.cores_per_node * topo.threads_per_core) + \
226 ((node_no) * topo.cores_per_node * topo.threads_per_core) + \
227 ((core_no) * topo.threads_per_core) + \
290 int threads_per_core; member
319 topo.threads_per_core; ++thread_no) { in for_all_cpus()
2596 topo.threads_per_core; ++thread_no) { in for_all_cpus_2()
4855 topo.threads_per_core = max_siblings; in topology_probe()
4881 int num_threads = topo.threads_per_core * num_cores; in allocate_counters()
/Linux-v4.19/drivers/cpufreq/
Dpowernv-cpufreq.c835 for (i = 0; i < threads_per_core; i++) in powernv_cpufreq_cpu_init()