/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/lib/ |
H A D | group_cpus.c | 177 * ncpu(X) is CPU count of node X in alloc_nodes_groups() 181 * ncpu(A) <= ncpu(B) in alloc_nodes_groups() 182 * ncpu(A) + ncpu(B) = N in alloc_nodes_groups() 185 * grps(A) = max(1, round_down(G * ncpu(A) / N)) in alloc_nodes_groups() 191 * 2) obviously grps(A) <= ncpu(A) because: in alloc_nodes_groups() 193 * if grps(A) is 1, then grps(A) <= ncpu(A) given in alloc_nodes_groups() 194 * ncpu(A) >= 1 in alloc_nodes_groups() 197 * grps(A) <= G * ncpu(A) / N <= ncpu(A), given G <= N in alloc_nodes_groups() 199 * 3) prove how grps(B) <= ncpu(B): in alloc_nodes_groups() 201 * if round_down(G * ncpu(A) / N) == 0, vecs(B) won't be in alloc_nodes_groups() [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/tools/memory-model/scripts/ |
H A D | runlitmushist.sh | 68 awk -v dq='"' -v hwfnseg="$hwfnseg" -v ncpu="$LKMM_JOBS" -v t="$T" ' 72 print "\techo runtest " dq $2 dq " " hwfnseg " >> " t "/" NR % ncpu ".sh"; 77 for (i = 0; i < ncpu; i++) {
|
/openbmc/qemu/.gitlab-ci.d/cirrus/ |
H A D | build.yml | 34 - $MAKE -j$(sysctl -n hw.ncpu) 37 $MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1 ;
|
/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/qemu/monitor/ |
H A D | hmp-cmds-target.c | 103 monitor_printf(mon, "\nCPU#%d\n", cs->cpu_index); in hmp_info_registers() 118 monitor_printf(mon, "\nCPU#%d\n", cs->cpu_index); in hmp_info_registers()
|
/openbmc/qemu/linux-user/s390x/ |
H A D | target_proc.h | 92 dprintf(fd, "\ncpu number : %ld\n", n); in show_cpuinfo()
|
/openbmc/linux/Documentation/bpf/ |
H A D | map_lru_hash_update.dot | 78 label="Stole node\nfrom remote\nCPU?"]
|
/openbmc/linux/samples/bpf/ |
H A D | cpustat_user.c | 49 printf("\nCPU states statistics:\n"); in cpu_stat_print()
|
/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/u-boot/board/siemens/draco/ |
H A D | board.c | 111 printf("\nCPU BOARD\n"); in print_chip_data()
|
/openbmc/linux/arch/s390/kernel/ |
H A D | processor.c | 328 seq_printf(m, "\ncpu number : %ld\n", n); in show_cpuinfo()
|
/openbmc/linux/include/soc/tegra/ |
H A D | bpmp-abi.h | 3888 * The mrq_gears_response::ncpu array defines four thresholds in units 3892 * 1. If number of online CPUs < ncpu[0] use offset0 3893 * 2. If number of online CPUs < ncpu[1] use offset1 3894 * 3. If number of online CPUs < ncpu[2] use offset2 3895 * 4. If number of online CPUs < ncpu[3] use offset3 3896 * 5. If number of online CPUs >= ncpu[3] disable offsetting 3898 * For TH500 mrq_gears_response::ncpu array has four valid entries. 3908 uint32_t ncpu[16]; member
|
/openbmc/linux/tools/accounting/ |
H A D | getdelays.c | 198 printf("\n\nCPU %15s%15s%15s%15s%15s\n" in print_delayacct()
|
/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/arch/powerpc/kernel/ |
H A D | setup-common.c | 251 seq_printf(m, "processor\t: %lu\ncpu\t\t: ", cpu_id); in show_cpuinfo()
|
/openbmc/u-boot/include/ |
H A D | elf.h | 187 #define EM_NCPU 56 /* Sony nCPU embeeded RISC */
|
/openbmc/linux/arch/arm/kernel/ |
H A D | setup.c | 1311 seq_printf(m, "\nCPU implementer\t: 0x%02x\n", cpuid >> 24); in c_show()
|