/openbmc/qemu/hw/intc/ |
H A D | arm_gicv3_kvm.c | 327 int ncpu, i; in kvm_arm_gicv3_put() local 343 for (ncpu = 0; ncpu < s->num_cpu; ncpu++) { in kvm_arm_gicv3_put() 344 GICv3CPUState *c = &s->cpu[ncpu]; in kvm_arm_gicv3_put() 348 kvm_gicr_access(s, GICR_PROPBASER, ncpu, ®l, true); in kvm_arm_gicv3_put() 350 kvm_gicr_access(s, GICR_PROPBASER + 4, ncpu, ®h, true); in kvm_arm_gicv3_put() 354 kvm_gicr_access(s, GICR_PENDBASER, ncpu, ®l, true); in kvm_arm_gicv3_put() 356 kvm_gicr_access(s, GICR_PENDBASER + 4, ncpu, ®h, true); in kvm_arm_gicv3_put() 362 for (ncpu = 0; ncpu < s->num_cpu; ncpu++) { in kvm_arm_gicv3_put() 363 GICv3CPUState *c = &s->cpu[ncpu]; in kvm_arm_gicv3_put() 366 kvm_gicr_access(s, GICR_CTLR, ncpu, ®, true); in kvm_arm_gicv3_put() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | smp-mt.c | 47 unsigned int ncpu) in smvp_vpe_init() argument 51 return ncpu; in smvp_vpe_init() 66 __cpu_number_map[tc] = ++ncpu; in smvp_vpe_init() 67 __cpu_logical_map[ncpu] = tc; in smvp_vpe_init() 76 cpu_set_vpe_id(&cpu_data[ncpu], tc); in smvp_vpe_init() 78 return ncpu; in smvp_vpe_init() 186 unsigned int mvpconf0, ntc, tc, ncpu = 0; in vsmp_smp_setup() local 216 ncpu = smvp_vpe_init(tc, mvpconf0, ncpu); in vsmp_smp_setup() 224 printk(KERN_INFO "Detected %i available secondary CPU(s)\n", ncpu); in vsmp_smp_setup()
|
/openbmc/qemu/bsd-user/ |
H A D | bsd-proc.c | 124 int ncpu = -1; in bsd_get_ncpu() local 131 ncpu = CPU_COUNT(&mask); in bsd_get_ncpu() 134 if (ncpu == -1) { in bsd_get_ncpu() 135 ncpu = sysconf(_SC_NPROCESSORS_ONLN); in bsd_get_ncpu() 138 if (ncpu == -1) { in bsd_get_ncpu() 140 ncpu = 1; in bsd_get_ncpu() 143 return ncpu; in bsd_get_ncpu()
|
/openbmc/linux/arch/mips/sgi-ip30/ |
H A D | ip30-smp.c | 78 int ncpu = 0; in ip30_smp_setup() local 88 __cpu_number_map[i] = ++ncpu; in ip30_smp_setup() 89 __cpu_logical_map[ncpu] = i; in ip30_smp_setup() 94 pr_info("IP30: Detected %d CPU(s) present.\n", ncpu); in ip30_smp_setup()
|
/openbmc/linux/arch/powerpc/perf/ |
H A D | imc-pmu.c | 676 int ncpu; in ppc_core_imc_cpu_offline() local 701 ncpu = cpumask_last(cpu_sibling_mask(cpu)); in ppc_core_imc_cpu_offline() 703 if (unlikely(ncpu == cpu)) in ppc_core_imc_cpu_offline() 704 ncpu = cpumask_any_but(cpu_sibling_mask(cpu), cpu); in ppc_core_imc_cpu_offline() 706 if (ncpu >= 0 && ncpu < nr_cpu_ids) { in ppc_core_imc_cpu_offline() 707 cpumask_set_cpu(ncpu, &core_imc_cpumask); in ppc_core_imc_cpu_offline() 708 perf_pmu_migrate_context(&core_imc_pmu->pmu, cpu, ncpu); in ppc_core_imc_cpu_offline()
|
/openbmc/linux/drivers/hv/ |
H A D | channel_mgmt.c | 734 u32 i, ncpu = num_online_cpus(); in init_vp_index() local 758 for (i = 1; i <= ncpu + 1; i++) { in init_vp_index() 787 if (channel->offermsg.offer.sub_channel_index >= ncpu || in init_vp_index() 788 i > ncpu || !hv_cpuself_used(target_cpu, channel)) in init_vp_index()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-sched.c | 280 u32 ncpu; /* highest cpu slot allocated */ member 1923 if ((cpu >= r->ncpu) || (r->last_time == NULL)) { in evsel__save_time() 1932 for (i = r->ncpu; i < n; ++i) in evsel__save_time() 1935 r->ncpu = n; in evsel__save_time() 1946 if ((r == NULL) || (r->last_time == NULL) || (cpu >= r->ncpu)) in evsel__get_time() 2266 static int init_idle_threads(int ncpu) in init_idle_threads() argument 2270 idle_threads = zalloc(ncpu * sizeof(struct thread *)); in init_idle_threads() 2274 idle_max_cpu = ncpu; in init_idle_threads() 2277 for (i = 0; i < ncpu; ++i) { in init_idle_threads()
|
/openbmc/linux/kernel/time/ |
H A D | hrtimer.c | 2229 int i, ncpu = cpumask_any_and(cpu_active_mask, housekeeping_cpumask(HK_TYPE_TIMER)); in hrtimers_cpu_dying() local 2235 new_base = &per_cpu(hrtimer_bases, ncpu); in hrtimers_cpu_dying() 2255 smp_call_function_single(ncpu, retrigger_next_event, NULL, 0); in hrtimers_cpu_dying()
|
/openbmc/linux/include/soc/tegra/ |
H A D | bpmp-abi.h | 3908 uint32_t ncpu[16]; member
|