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()
|
H A D | paravirt.h | 199 for (i = first_cpu; i < first_cpu + threads_per_core; i++) { in vcpu_is_preempted()
|
H A D | topology.h | 166 for (i = first_cpu; i < first_cpu + threads_per_core; ++i) { in topology_is_core_online()
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | subcore.c | 154 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() 436 if (setup_max_cpus % threads_per_core) in subcore_init()
|
/linux/drivers/virt/nitro_enclaves/ |
H A D | ne_misc_dev.c | 554 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 D | ne_misc_dev.h | 80 cpumask_var_t *threads_per_core; member
|
/linux/arch/powerpc/perf/ |
H A D | imc-pmu.c | 601 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() 1135 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_add() 1170 core_id = smp_processor_id() / threads_per_core; in thread_imc_event_del() 1209 int core_id = (cpu_id / threads_per_core); in trace_imc_mem_alloc() 1360 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_add() 1410 int core_id = smp_processor_id() / threads_per_core; in trace_imc_event_del() [all …]
|
/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 | 301 if (threads_per_core == 2) in get_thread_specific_lpid()
|
/linux/arch/powerpc/kernel/ |
H A D | smp.c | 929 for (i = first_thread; i < first_thread + threads_per_core; i++) { in update_mask_from_threadgroup() 1147 int idx = DIV_ROUND_UP(num_possible_cpus(), threads_per_core); in smp_prepare_cpus() 1167 cpu_smt_set_num_threads(num_threads, threads_per_core); in smp_prepare_cpus() 1283 if (threads_per_core > 1 && secondaries_inhibited() && in __cpu_up() 1577 for (i = first_thread; i < first_thread + threads_per_core; i++) in add_cpu_to_masks() 1755 return -cpu / threads_per_core; in arch_asym_cpu_priority()
|
/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/arch/powerpc/mm/ |
H A D | numa.c | 773 for (i = 0; i < threads_per_core; i++) { in verify_cpu_node_mapping()
|