Home
last modified time | relevance | path

Searched refs:pcpu (Results 1 – 22 of 22) sorted by relevance

/arch/arm/common/
Dmcpm_platsmp.c20 unsigned int *pcpu, unsigned int *pcluster) in cpu_to_pcpu() argument
25 *pcpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in cpu_to_pcpu()
31 unsigned int pcpu, pcluster, ret; in mcpm_boot_secondary() local
34 cpu_to_pcpu(cpu, &pcpu, &pcluster); in mcpm_boot_secondary()
37 __func__, cpu, pcpu, pcluster); in mcpm_boot_secondary()
39 mcpm_set_entry_vector(pcpu, pcluster, NULL); in mcpm_boot_secondary()
40 ret = mcpm_cpu_power_up(pcpu, pcluster); in mcpm_boot_secondary()
43 mcpm_set_entry_vector(pcpu, pcluster, secondary_startup); in mcpm_boot_secondary()
58 unsigned int pcpu, pcluster; in mcpm_cpu_kill() local
60 cpu_to_pcpu(cpu, &pcpu, &pcluster); in mcpm_cpu_kill()
[all …]
/arch/s390/kernel/
Dsmp.c77 struct pcpu { struct
86 static struct pcpu pcpu_devices[NR_CPUS]; argument
136 static int pcpu_sigp_retry(struct pcpu *pcpu, u8 order, u32 parm) in pcpu_sigp_retry() argument
141 cc = __pcpu_sigp(pcpu->address, order, parm, NULL); in pcpu_sigp_retry()
150 static inline int pcpu_stopped(struct pcpu *pcpu) in pcpu_stopped() argument
154 if (__pcpu_sigp(pcpu->address, SIGP_SENSE, in pcpu_stopped()
160 static inline int pcpu_running(struct pcpu *pcpu) in pcpu_running() argument
162 if (__pcpu_sigp(pcpu->address, SIGP_SENSE_RUNNING, in pcpu_running()
172 static struct pcpu *pcpu_find_address(const struct cpumask *mask, u16 address) in pcpu_find_address()
182 static void pcpu_ec_call(struct pcpu *pcpu, int ec_bit) in pcpu_ec_call() argument
[all …]
/arch/powerpc/platforms/pseries/
Dsmp.c55 int smp_query_cpu_stopped(unsigned int pcpu) in smp_query_cpu_stopped() argument
66 status = rtas_call(qcss_tok, 1, 2, &cpu_status, pcpu); in smp_query_cpu_stopped()
92 unsigned int pcpu; in smp_startup_cpu() local
99 pcpu = get_hard_smp_processor_id(lcpu); in smp_startup_cpu()
102 if (smp_query_cpu_stopped(pcpu) == QCSS_NOT_STOPPED){ in smp_startup_cpu()
115 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, pcpu); in smp_startup_cpu()
Dpseries.h30 int smp_query_cpu_stopped(unsigned int pcpu);
Dhotplug-cpu.c118 unsigned int pcpu = get_hard_smp_processor_id(cpu); in pseries_cpu_die() local
122 cpu_status = smp_query_cpu_stopped(pcpu); in pseries_cpu_die()
129 cpu, pcpu); in pseries_cpu_die()
138 cpu, pcpu); in pseries_cpu_die()
/arch/x86/events/amd/
Dibs.c95 struct cpu_perf_ibs __percpu *pcpu; member
426 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_start() local
446 set_bit(IBS_STARTED, pcpu->state); in perf_ibs_start()
447 clear_bit(IBS_STOPPING, pcpu->state); in perf_ibs_start()
457 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_stop() local
461 if (test_and_set_bit(IBS_STOPPING, pcpu->state)) in perf_ibs_stop()
464 stopping = test_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop()
478 set_bit(IBS_STOPPED, pcpu->state); in perf_ibs_stop()
489 clear_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop()
510 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_add() local
[all …]
/arch/alpha/kernel/
Derr_common.c242 cdl_process_console_data_log(int cpu, struct percpu_struct *pcpu) in cdl_process_console_data_log() argument
245 (IDENT_ADDR | pcpu->console_data_log_pa); in cdl_process_console_data_log()
256 pcpu->console_data_log_pa = 0; in cdl_process_console_data_log()
266 struct percpu_struct *pcpu; in cdl_check_console_data_log() local
270 pcpu = (struct percpu_struct *) in cdl_check_console_data_log()
273 if (pcpu->console_data_log_pa) in cdl_check_console_data_log()
274 cdl_process_console_data_log(cpu, pcpu); in cdl_check_console_data_log()
/arch/powerpc/platforms/powernv/
Dsmp.c66 unsigned int pcpu; in pnv_smp_kick_cpu() local
75 pcpu = get_hard_smp_processor_id(nr); in pnv_smp_kick_cpu()
89 rc = opal_query_cpu_status(pcpu, &status); in pnv_smp_kick_cpu()
106 pr_devel("OPAL: Starting CPU %d (HW 0x%x)...\n", nr, pcpu); in pnv_smp_kick_cpu()
107 rc = opal_start_cpu(pcpu, start_here); in pnv_smp_kick_cpu()
120 " (status %d)...\n", nr, pcpu, status); in pnv_smp_kick_cpu()
/arch/powerpc/platforms/cell/
Dsmp.c71 unsigned int pcpu; in smp_startup_cpu() local
78 pcpu = get_hard_smp_processor_id(lcpu); in smp_startup_cpu()
88 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, lcpu); in smp_startup_cpu()
/arch/s390/include/asm/
Dsmp.h44 u16 pcpu = stap(); in smp_stop_cpu() local
47 __pcpu_sigp(pcpu, SIGP_STOP, 0, NULL); in smp_stop_cpu()
/arch/powerpc/kvm/
Dbook3s_hv_builtin.c237 int cpu = vc->pcpu; in kvmhv_interrupt_vcore()
616 void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu) in kvmppc_check_need_tlb_flush() argument
618 if (cpumask_test_cpu(pcpu, &kvm->arch.need_tlb_flush)) { in kvmppc_check_need_tlb_flush()
622 cpumask_clear_cpu(pcpu, &kvm->arch.need_tlb_flush); in kvmppc_check_need_tlb_flush()
Dbook3s_hv_rm_xics.c718 int pcpu = raw_smp_processor_id(); in ics_rm_eoi() local
720 pcpu = cpu_first_thread_sibling(pcpu); in ics_rm_eoi()
722 if (state->intr_cpu != pcpu) { in ics_rm_eoi()
724 xics_opal_set_server(state->host_irq, pcpu); in ics_rm_eoi()
Dbook3s_hv.c740 unsigned int pcpu, u64 now, in __kvmppc_create_dtl_entry() argument
752 dt->processor_id = cpu_to_be16(pcpu + vcpu->arch.ptid); in __kvmppc_create_dtl_entry()
797 __kvmppc_create_dtl_entry(vcpu, vpa, vc->pcpu, now + vc->tb_offset, stolen); in kvmppc_update_vpa_dispatch()
820 __kvmppc_create_dtl_entry(vcpu, vpa, vc->pcpu, now, stolen_delta); in kvmppc_update_vpa_dispatch_p9()
1446 int thr, cpu, pcpu, nthreads; in kvmppc_read_dpdes() local
1462 pcpu = READ_ONCE(v->cpu); in kvmppc_read_dpdes()
1463 if (pcpu >= 0) in kvmppc_read_dpdes()
1464 smp_call_function_single(pcpu, do_nothing, NULL, 1); in kvmppc_read_dpdes()
3226 static void kvmppc_prepare_radix_vcpu(struct kvm_vcpu *vcpu, int pcpu) in kvmppc_prepare_radix_vcpu() argument
3251 if (prev_cpu != pcpu) { in kvmppc_prepare_radix_vcpu()
[all …]
Dbook3s_hv_p9_entry.c453 static void check_need_tlb_flush(struct kvm *kvm, int pcpu, in check_need_tlb_flush() argument
465 if (likely(!cpumask_test_cpu(pcpu, need_tlb_flush))) in check_need_tlb_flush()
477 for (i = cpu_first_tlb_thread_sibling(pcpu); in check_need_tlb_flush()
478 i <= cpu_last_tlb_thread_sibling(pcpu); in check_need_tlb_flush()
491 cpumask_clear_cpu(pcpu, need_tlb_flush); in check_need_tlb_flush()
703 check_need_tlb_flush(kvm, vc->pcpu, nested); in kvmhv_vcpu_entry_p9()
Dbook3s_hv_rm_mmu.c57 cpu = local_paca->kvm_hstate.kvm_vcore->pcpu; in global_invalidates()
/arch/loongarch/kernel/
Dacpi.c309 int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, u32 acpi_id, int *pcpu) in acpi_map_cpu() argument
321 *pcpu = cpu; in acpi_map_cpu()
/arch/ia64/kernel/
Dacpi.c784 static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu) in _acpi_map_lsapic() argument
799 *pcpu = cpu; in _acpi_map_lsapic()
805 int *pcpu) in acpi_map_cpu() argument
807 return _acpi_map_lsapic(handle, physid, pcpu); in acpi_map_cpu()
/arch/x86/xen/
Denlighten.c311 pin_override.pcpu = cpu; in xen_pin_vcpu()
/arch/powerpc/kernel/
Dmodule_64.c260 unsigned int symindex, unsigned int pcpu) in count_pcpu_relocs() argument
275 if (sym->st_shndx == pcpu && in count_pcpu_relocs()
/arch/x86/kernel/acpi/
Dboot.c838 int *pcpu) in acpi_map_cpu() argument
851 *pcpu = cpu; in acpi_map_cpu()
/arch/powerpc/include/asm/
Dkvm_book3s.h74 u16 pcpu; member
Dkvm_ppc.h574 extern void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu);