/freebsd-12-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-12-stable/contrib/gcclibs/libgomp/config/bsd/ |
H A D | proc.c | 52 int ncpus = 1; 53 size_t len = sizeof(ncpus); 54 sysctl((int[2]) {CTL_HW, HW_NCPU}, 2, &ncpus, &len, NULL, 0); 55 return ncpus; 67 int ncpus = get_num_procs (); local 69 if (ncpus > 0) 70 gomp_global_icv.nthreads_var = ncpus; 111 int ncpus = get_num_procs (); local 112 if (ncpus <= 0) 113 ncpus [all...] |
/freebsd-12-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-12-stable/tools/tools/ncpus/ |
H A D | Makefile | 3 PROG= ncpus 5 SRCS= ncpus.c acpi.c
|
/freebsd-12-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-12-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-12-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-12-stable/usr.bin/top/ |
H A D | machine.h | 33 int ncpus; member in struct:statics 53 int ncpus; member in struct:system_info
|
H A D | machine.c | 206 static int ncpus; variable 239 if (ncpus == 1) 244 /* Adjust display based on ncpus and the ARC state. */ 260 y_mem += ncpus - 1; 261 y_arc += ncpus - 1; 262 y_carc += ncpus - 1; 263 y_swap += ncpus - 1; 264 y_idlecursor += ncpus - 1; 265 y_message += ncpus - 1; 266 y_header += ncpus [all...] |
/freebsd-12-stable/contrib/jemalloc/include/jemalloc/internal/ |
H A D | jemalloc_internal_inlines_a.h | 30 if ((opt_percpu_arena == percpu_arena) || ((unsigned)cpuid < ncpus / 36 arena_ind = cpuid - ncpus / 2; 46 if (mode == per_phycpu_arena && ncpus > 1) { 47 if (ncpus % 2) { 49 return ncpus / 2 + 1; 51 return ncpus / 2; 53 return ncpus;
|
H A D | jemalloc_internal_externs.h | 23 extern unsigned ncpus;
|
H A D | background_thread_inlines.h | 18 return &background_thread_info[arena_ind % ncpus];
|
/freebsd-12-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++)
|
H A D | hwpmc_soft.c | 488 int i, ncpus; local 490 ncpus = pmc_cpu_max(); 491 for (i = 0; i < ncpus; i++)
|
/freebsd-12-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-12-stable/lib/libc/gen/ |
H A D | auxv.c | 70 static int pagesize, osreldate, canary_len, ncpus, pagesizes_len; variable 122 ncpus = aux->a_un.a_val; 209 if (ncpus != 0) { 210 *(int *)buf = ncpus;
|
/freebsd-12-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; 272 u_int ncpus = mp_ncpus ? mp_ncpus : MAXCPU; local 287 if (ncpus != kfrwk.kfrwk_waiting) {
|
/freebsd-12-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-12-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-12-stable/sys/powerpc/pseries/ |
H A D | xics.c | 304 int ncpus, i, error; local 314 ncpus = 0; 316 if (CPU_ISSET(cpu, &cpumask)) ncpus++; 318 i = mftb() % ncpus; 319 ncpus = 0; 323 if (ncpus == i) 325 ncpus++;
|
/freebsd-12-stable/sys/arm/mv/ |
H A D | mv_thermal.c | 82 int ncpus; member in struct:mv_thermal_config 102 .ncpus = 4, 341 for (i = 0; i < sc->config->ncpus; i++) {
|
/freebsd-12-stable/contrib/jemalloc/src/ |
H A D | mutex.c | 62 if (ncpus == 1) {
|