/Linux-v4.19/arch/powerpc/include/asm/ |
D | cputhreads.h | 23 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/ |
D | idle.c | 167 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 …]
|
D | subcore.c | 156 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/ |
D | imc-pmu.c | 555 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()
|
D | hv-24x7.c | 1601 if (threads_per_core == 8) in hv_24x7_init()
|
/Linux-v4.19/arch/powerpc/platforms/85xx/ |
D | smp.c | 283 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/ |
D | setup_64.c | 141 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()
|
D | setup-common.c | 404 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()
|
D | smp.c | 828 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/ |
D | e500mc.c | 374 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()
|
D | e500.h | 302 if (threads_per_core == 2) in get_thread_specific_lpid()
|
D | book3s_hv_builtin.c | 335 for (t = 1; t < threads_per_core; ++t) { in kvmhv_commence_exit()
|
D | book3s_hv.c | 2255 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/ |
D | fsl_rcpm.c | 152 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/ |
D | setup.c | 705 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()
|
D | smpboot.c | 592 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()
|
D | topology.c | 149 if (cpu_data(cpu)->threads_per_core <= 1 && in cache_shared_cpu_map_setup()
|
/Linux-v4.19/arch/powerpc/mm/ |
D | numa.c | 500 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/ |
D | processor.h | 214 unsigned char threads_per_core; /* Threads per core */ member
|
/Linux-v4.19/tools/power/x86/turbostat/ |
D | turbostat.c | 225 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/ |
D | powernv-cpufreq.c | 835 for (i = 0; i < threads_per_core; i++) in powernv_cpufreq_cpu_init()
|