Searched refs:ncpus (Results 1 - 25 of 45) sorted by relevance

12

/freebsd-13-stable/contrib/ntp/lib/isc/win32/
H A Dos.c38 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 Dos.c79 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 DMakefile3 PROG= ncpus
5 SRCS= ncpus.c acpi.c
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/threadsappend/
H A Dthreadsappend.c91 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 Dthreadsappend.c89 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 Dunix_close_race.c67 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 Disctest.c45 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 Disctest.h48 extern int ncpus;
/freebsd-13-stable/usr.bin/top/
H A Dmachine.h34 int ncpus; member in struct:statics
55 int ncpus; member in struct:system_info
H A Dmachine.c206 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 Djemalloc_internal_inlines_a.h32 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 Djemalloc_internal_externs.h23 extern unsigned ncpus;
/freebsd-13-stable/sys/dev/hwpmc/
H A Dhwpmc_intel.c83 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 Dhwpmc_tsc.c371 int i, ncpus; local
373 ncpus = pmc_cpu_max();
374 for (i = 0; i < ncpus; i++)
/freebsd-13-stable/sys/mips/malta/
H A Dmalta_mp.c212 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 Dpmu_fdt.c123 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 Dauxv.c70 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 Dkern_testfrwk.c130 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 Dtcpp_server.c201 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 Dtcpp_client.c218 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 Dberi_mp.c71 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 Dxics.c327 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 DMakefile.in35 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 Dxive.c449 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 Dmv_thermal.c82 int ncpus; member in struct:mv_thermal_config
102 .ncpus = 4,
340 for (i = 0; i < sc->config->ncpus; i++) {

Completed in 266 milliseconds

12