/freebsd-13-stable/contrib/ntp/lib/isc/win32/ |
H A D | os.c | 38 long ncpus = 1; local 40 ncpus = SystemInfo.dwNumberOfProcessors; 41 if (ncpus <= 0) 42 ncpus = 1; 44 return ((unsigned int)ncpus);
|
/freebsd-13-stable/contrib/ntp/lib/isc/unix/ |
H A D | os.c | 79 long ncpus = 0; local 82 ncpus = hpux_ncpus(); 84 ncpus = sysconf_ncpus(); 87 if (ncpus <= 0) 88 ncpus = sysctl_ncpus(); 90 if (ncpus <= 0) 91 ncpus = 1; 93 return ((unsigned int)ncpus);
|
/freebsd-13-stable/tools/tools/ncpus/ |
H A D | Makefile | 3 PROG= ncpus 5 SRCS= ncpus.c acpi.c
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/threadsappend/ |
H A D | threadsappend.c | 91 long ncpus = 0; local 98 ncpus = sysconf(_SC_NPROCESSORS_ONLN); 99 if (ncpus < 0) { 105 if (ncpus < 2) {
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/threadsappend/ |
H A D | threadsappend.c | 89 long ncpus = 0; local 96 ncpus = sysconf(_SC_NPROCESSORS_ONLN); 97 if (ncpus < 0) { 103 if (ncpus < 2) {
|
/freebsd-13-stable/tools/regression/sockets/unix_close_race/ |
H A D | unix_close_race.c | 67 u_int counter, ncpus; local 70 len = sizeof(ncpus); 71 if (sysctlbyname("kern.smp.cpus", &ncpus, &len, NULL, 0) < 0) 73 if (len != sizeof(ncpus)) 75 if (ncpus < 2)
|
/freebsd-13-stable/contrib/ntp/lib/isc/tests/ |
H A D | isctest.c | 45 int ncpus; variable 78 ncpus = isc_os_ncpus(); 80 ncpus = 1; 83 CHECK(isc_taskmgr_create(mctx, ncpus, 0, &taskmgr)); 124 ncpus = isc_os_ncpus(); 126 ncpus = 1;
|
H A D | isctest.h | 48 extern int ncpus;
|
/freebsd-13-stable/usr.bin/top/ |
H A D | machine.h | 34 int ncpus; member in struct:statics 55 int ncpus; member in struct:system_info
|
H A D | machine.c | 206 static int ncpus; variable 243 if (ncpus == 1) 248 /* Adjust display based on ncpus and the ARC state. */ 264 y_mem += ncpus - 1; 265 y_arc += ncpus - 1; 266 y_carc += ncpus - 1; 267 y_swap += ncpus - 1; 268 y_idlecursor += ncpus - 1; 269 y_message += ncpus - 1; 270 y_header += ncpus [all...] |
/freebsd-13-stable/contrib/jemalloc/include/jemalloc/internal/ |
H A D | jemalloc_internal_inlines_a.h | 32 if ((opt_percpu_arena == percpu_arena) || ((unsigned)cpuid < ncpus / 38 arena_ind = cpuid - ncpus / 2; 48 if (mode == per_phycpu_arena && ncpus > 1) { 49 if (ncpus % 2) { 51 return ncpus / 2 + 1; 53 return ncpus / 2; 55 return ncpus;
|
H A D | jemalloc_internal_externs.h | 23 extern unsigned ncpus;
|
/freebsd-13-stable/sys/dev/hwpmc/ |
H A D | hwpmc_intel.c | 83 int error, family, model, nclasses, ncpus, stepping, verov; local 230 ncpus = pmc_cpu_max(); 231 error = pmc_tsc_initialize(pmc_mdep, ncpus); 258 error = pmc_core_initialize(pmc_mdep, ncpus, verov); 282 error = pmc_uncore_initialize(pmc_mdep, ncpus);
|
H A D | hwpmc_tsc.c | 371 int i, ncpus; local 373 ncpus = pmc_cpu_max(); 374 for (i = 0; i < ncpus; i++)
|
/freebsd-13-stable/sys/mips/malta/ |
H A D | malta_mp.c | 212 uint32_t i, ncpus, reg; local 215 ncpus = ((reg & MVPCONF0_PVPE_MASK) >> MVPCONF0_PVPE_SHIFT) + 1; 218 for (i = 0; i < ncpus; i++)
|
/freebsd-13-stable/sys/arm/arm/ |
H A D | pmu_fdt.c | 123 int rid, err, ncpus, i; local 134 ncpus = OF_getencprop_alloc_multi(node, "interrupt-affinity", 136 if (ncpus < 0) { 190 if (has_affinity && i >= ncpus) {
|
/freebsd-13-stable/lib/libc/gen/ |
H A D | auxv.c | 70 static int pagesize, osreldate, canary_len, ncpus, pagesizes_len, bsdflags; variable 133 ncpus = aux->a_un.a_val; 198 ncpus = aux->a_un.a_val; 328 if (ncpus != 0) { 329 *(int *)buf = ncpus;
|
/freebsd-13-stable/sys/tests/framework/ |
H A D | kern_testfrwk.c | 130 u_int ncpus = mp_ncpus ? mp_ncpus : MAXCPU; local 143 taskqueue_start_threads(&kfrwk.kfrwk_tq, ncpus, PI_NET, "[kt_frwk task]"); 144 kfrwk.kfrwk_waiting = ncpus; 275 u_int ncpus = mp_ncpus ? mp_ncpus : MAXCPU; local 290 if (ncpus != kfrwk.kfrwk_waiting) {
|
/freebsd-13-stable/tools/tools/netrate/tcpp/ |
H A D | tcpp_server.c | 201 int ncpus; local 205 len = sizeof(ncpus); 206 if (sysctlbyname(SYSCTLNAME_CPUS, &ncpus, &len, NULL, 0) < 0) 208 if (len != sizeof(ncpus)) 213 CPU_SET(workernum % ncpus, &mask);
|
H A D | tcpp_client.c | 218 int ncpus; local 222 len = sizeof(ncpus); 223 if (sysctlbyname(SYSCTLNAME_CPUS, &ncpus, &len, NULL, 0) < 0) 225 if (len != sizeof(ncpus)) 230 CPU_SET(workernum % ncpus, &mask);
|
/freebsd-13-stable/sys/mips/beri/ |
H A D | beri_mp.c | 71 int ncores, ncpus, nthreads; local 85 ncpus = ncores * nthreads; 86 if (MAXCPU > 1 && ncpus > MAXCPU) 88 __func__, ncpus, MAXCPU);
|
/freebsd-13-stable/sys/powerpc/pseries/ |
H A D | xics.c | 327 int ncpus, i, error = -1; local 339 ncpus = 0; 341 if (CPU_ISSET(cpu, &cpumask)) ncpus++; 343 i = mftb() % ncpus; 344 ncpus = 0; 348 if (ncpus == i) 350 ncpus++;
|
/freebsd-13-stable/sys/contrib/openzfs/module/ |
H A D | Makefile.in | 35 ncpus=$$(sysctl -n kern.smp.cpus 2>/dev/null || :); \ 36 if [ -n "$$ncpus" ]; then fmakeflags="$$fmakeflags -j$$ncpus"; fi; \
|
/freebsd-13-stable/sys/powerpc/powernv/ |
H A D | xive.c | 449 int ncpus, i, error; local 460 ncpus = 0; 462 if (CPU_ISSET(cpu, &cpumask)) ncpus++; 464 i = mftb() % ncpus; 465 ncpus = 0; 469 if (ncpus == i) 471 ncpus++;
|
/freebsd-13-stable/sys/arm/mv/ |
H A D | mv_thermal.c | 82 int ncpus; member in struct:mv_thermal_config 102 .ncpus = 4, 340 for (i = 0; i < sc->config->ncpus; i++) {
|