Home
last modified time | relevance | path

Searched refs:pcpu (Results 1 – 20 of 20) 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.c76 struct pcpu { struct
85 static struct pcpu pcpu_devices[NR_CPUS]; argument
135 static int pcpu_sigp_retry(struct pcpu *pcpu, u8 order, u32 parm) in pcpu_sigp_retry() argument
140 cc = __pcpu_sigp(pcpu->address, order, parm, NULL); in pcpu_sigp_retry()
149 static inline int pcpu_stopped(struct pcpu *pcpu) in pcpu_stopped() argument
153 if (__pcpu_sigp(pcpu->address, SIGP_SENSE, in pcpu_stopped()
159 static inline int pcpu_running(struct pcpu *pcpu) in pcpu_running() argument
161 if (__pcpu_sigp(pcpu->address, SIGP_SENSE_RUNNING, in pcpu_running()
171 static struct pcpu *pcpu_find_address(const struct cpumask *mask, u16 address) in pcpu_find_address()
181 static void pcpu_ec_call(struct pcpu *pcpu, int ec_bit) in pcpu_ec_call() argument
[all …]
/arch/x86/events/amd/
Dibs.c95 struct cpu_perf_ibs __percpu *pcpu; member
414 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_start() local
434 set_bit(IBS_STARTED, pcpu->state); in perf_ibs_start()
435 clear_bit(IBS_STOPPING, pcpu->state); in perf_ibs_start()
445 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_stop() local
449 if (test_and_set_bit(IBS_STOPPING, pcpu->state)) in perf_ibs_stop()
452 stopping = test_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop()
466 set_bit(IBS_STOPPED, pcpu->state); in perf_ibs_stop()
477 clear_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop()
498 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_add() local
[all …]
/arch/powerpc/platforms/pseries/
Dsmp.c56 int smp_query_cpu_stopped(unsigned int pcpu) in smp_query_cpu_stopped() argument
67 status = rtas_call(qcss_tok, 1, 2, &cpu_status, pcpu); in smp_query_cpu_stopped()
93 unsigned int pcpu; in smp_startup_cpu() local
100 pcpu = get_hard_smp_processor_id(lcpu); in smp_startup_cpu()
103 if (smp_query_cpu_stopped(pcpu) == QCSS_NOT_STOPPED){ in smp_startup_cpu()
116 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, pcpu); in smp_startup_cpu()
Dpseries.h29 int smp_query_cpu_stopped(unsigned int pcpu);
Dhotplug-cpu.c117 unsigned int pcpu = get_hard_smp_processor_id(cpu); in pseries_cpu_die() local
121 cpu_status = smp_query_cpu_stopped(pcpu); in pseries_cpu_die()
128 cpu, pcpu); in pseries_cpu_die()
137 cpu, pcpu); in pseries_cpu_die()
/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/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/cell/
Dsmp.c72 unsigned int pcpu; in smp_startup_cpu() local
79 pcpu = get_hard_smp_processor_id(lcpu); in smp_startup_cpu()
89 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()
716 void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu, in kvmppc_check_need_tlb_flush() argument
728 pcpu = cpu_first_tlb_thread_sibling(pcpu); in kvmppc_check_need_tlb_flush()
735 if (cpumask_test_cpu(pcpu, need_tlb_flush)) { in kvmppc_check_need_tlb_flush()
739 cpumask_clear_cpu(pcpu, need_tlb_flush); in kvmppc_check_need_tlb_flush()
Dbook3s_hv_rm_xics.c713 int pcpu = raw_smp_processor_id(); in ics_rm_eoi() local
715 pcpu = cpu_first_thread_sibling(pcpu); in ics_rm_eoi()
717 if (state->intr_cpu != pcpu) { in ics_rm_eoi()
719 xics_opal_set_server(state->host_irq, pcpu); in ics_rm_eoi()
Dbook3s_hv.c711 dt->processor_id = cpu_to_be16(vc->pcpu + vcpu->arch.ptid); in kvmppc_create_dtl_entry()
1337 int thr, cpu, pcpu, nthreads; in kvmppc_read_dpdes() local
1353 pcpu = READ_ONCE(v->cpu); in kvmppc_read_dpdes()
1354 if (pcpu >= 0) in kvmppc_read_dpdes()
1355 smp_call_function_single(pcpu, do_nothing, NULL, 1); in kvmppc_read_dpdes()
2973 static void kvmppc_prepare_radix_vcpu(struct kvm_vcpu *vcpu, int pcpu) in kvmppc_prepare_radix_vcpu() argument
2999 if (prev_cpu != pcpu) { in kvmppc_prepare_radix_vcpu()
3002 cpu_first_tlb_thread_sibling(pcpu)) in kvmppc_prepare_radix_vcpu()
3005 nested->prev_cpu[vcpu->arch.nested_vcpu_id] = pcpu; in kvmppc_prepare_radix_vcpu()
3007 vcpu->arch.prev_cpu = pcpu; in kvmppc_prepare_radix_vcpu()
[all …]
Dbook3s_hv_p9_entry.c303 kvmppc_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/ia64/kernel/
Dacpi.c784 static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu) in _acpi_map_lsapic() argument
801 *pcpu = cpu; in _acpi_map_lsapic()
807 int *pcpu) in acpi_map_cpu() argument
809 return _acpi_map_lsapic(handle, physid, pcpu); in acpi_map_cpu()
/arch/x86/xen/
Denlighten.c370 pin_override.pcpu = cpu; in xen_pin_vcpu()
/arch/x86/kernel/acpi/
Dboot.c752 int *pcpu) in acpi_map_cpu() argument
765 *pcpu = cpu; in acpi_map_cpu()
/arch/powerpc/include/asm/
Dkvm_book3s.h74 u16 pcpu; member
Dkvm_ppc.h555 extern void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu,