/freebsd-11-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-11-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-11-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-11-stable/tools/tools/ncpus/ |
H A D | Makefile | 3 PROG= ncpus 5 SRCS= ncpus.c acpi.c
|
/freebsd-11-stable/sys/dev/hwpmc/ |
H A D | hwpmc_pentium.c | 47 pmc_p5_initialize(struct pmc_mdep *pmc_mdep, int ncpus) argument 49 (void) pmc_mdep; (void) ncpus;
|
H A D | hwpmc_intel.c | 81 int error, model, nclasses, ncpus, stepping, verov; local 242 ncpus = pmc_cpu_max(); 243 error = pmc_tsc_initialize(pmc_mdep, ncpus); 270 error = pmc_core_initialize(pmc_mdep, ncpus, verov); 278 error = pmc_p4_initialize(pmc_mdep, ncpus); 292 error = pmc_p6_initialize(pmc_mdep, ncpus); 300 error = pmc_p5_initialize(pmc_mdep, ncpus); 326 error = pmc_uncore_initialize(pmc_mdep, ncpus);
|
H A D | hwpmc_tsc.c | 369 int i, ncpus; local 371 ncpus = pmc_cpu_max(); 372 for (i = 0; i < ncpus; i++)
|
H A D | hwpmc_soft.c | 486 int i, ncpus; local 488 ncpus = pmc_cpu_max(); 489 for (i = 0; i < ncpus; i++)
|
H A D | hwpmc_amd.c | 1037 int classindex, error, i, ncpus; local 1110 ncpus = pmc_cpu_max(); 1113 error = pmc_tsc_initialize(pmc_mdep, ncpus); 1176 int classindex, i, ncpus, pmcclass; local 1210 ncpus = pmc_cpu_max(); 1212 for (i = 0; i < ncpus; i++)
|
H A D | hwpmc_ppro.c | 784 pmc_p6_initialize(struct pmc_mdep *md, int ncpus) argument 794 p6_pcpu = malloc(sizeof(struct p6_cpu **) * ncpus, M_PMC, 852 int i, ncpus; local 858 ncpus = pmc_cpu_max(); 859 for (i = 0; i < ncpus; i++)
|
/freebsd-11-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-11-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-11-stable/contrib/top/ |
H A D | machine.h | 29 int ncpus; member in struct:statics 55 int ncpus; member in struct:system_info
|
/freebsd-11-stable/sys/powerpc/pseries/ |
H A D | xics.c | 200 int ncpus, i, error; local 206 ncpus = 0; 208 if (CPU_ISSET(cpu, &cpumask)) ncpus++; 210 i = mftb() % ncpus; 211 ncpus = 0; 215 if (ncpus == i) 217 ncpus++;
|
H A D | platform_chrp.c | 457 int i, ncores, ncpus; local 459 ncores = ncpus = 0; 468 ncpus++; 471 if (ncpus % ncores != 0) { 473 "suboptimal (%d CPUS, %d cores)\n", ncpus, ncores); 478 if (ncpus == ncores) 481 return (smp_topo_1level(CG_SHARE_L1, ncpus / ncores, CG_FLAG_SMT));
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | auxv.c | 68 static int pagesize, osreldate, canary_len, ncpus, pagesizes_len; variable 116 ncpus = aux->a_un.a_val; 191 if (ncpus != 0) { 192 *(int *)buf = ncpus;
|
/freebsd-11-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 | 228 int ncpus; local 232 len = sizeof(ncpus); 233 if (sysctlbyname(SYSCTLNAME_CPUS, &ncpus, &len, NULL, 0) < 0) 235 if (len != sizeof(ncpus)) 240 CPU_SET(workernum % ncpus, &mask);
|
/freebsd-11-stable/sys/tests/framework/ |
H A D | kern_testfrwk.c | 131 u_int ncpus = mp_ncpus ? mp_ncpus : MAXCPU; local 144 taskqueue_start_threads(&kfrwk.kfrwk_tq, ncpus, PI_NET, "[kt_frwk task]"); 145 kfrwk.kfrwk_waiting = ncpus; 273 u_int ncpus = mp_ncpus ? mp_ncpus : MAXCPU; local 288 if (ncpus != kfrwk.kfrwk_waiting) {
|
/freebsd-11-stable/usr.bin/top/ |
H A D | machine.c | 260 static int ncpus; variable 293 if (ncpus == 1) 298 /* Adjust display based on ncpus and the ARC state. */ 314 y_mem += ncpus - 1; 315 y_arc += ncpus - 1; 316 y_carc += ncpus - 1; 317 y_swap += ncpus - 1; 318 y_idlecursor += ncpus - 1; 319 y_message += ncpus - 1; 320 y_header += ncpus [all...] |
/freebsd-11-stable/usr.sbin/powerd/ |
H A D | powerd.c | 144 static int ncpus = 0; local 160 ncpus = cp_times_len / (sizeof(long) * CPUSTATES); 163 cp_times_len = sizeof(long) * CPUSTATES * ncpus; 170 for (cpu = 0; cpu < ncpus; cpu++) {
|
/freebsd-11-stable/sys/dev/netmap/ |
H A D | netmap_bdg.c | 568 u_int ncpus; member in struct:nm_bdg_polling_state 599 bps->kthreads = nm_os_malloc(sizeof(struct nm_bdg_kthread) * bps->ncpus); 605 for (i = 0; i < bps->ncpus; i++) { 607 int all = (bps->ncpus == 1 && 649 for (i = 0; i < bps->ncpus; i++) { 676 for (i = 0; i < bps->ncpus; i++) { 721 nm_prerr("ncpus must be 1 for NETMAP_POLLING_MODE_SINGLE_CPU " 737 bps->ncpus = req_cpus; 738 nm_prinf("%s qfirst %u qlast %u cpu_from %u ncpus %u",
|
/freebsd-11-stable/usr.bin/vmstat/ |
H A D | vmstat.c | 600 int empty, i, j, maxcpu, maxid, ncpus; local 605 ncpus = 0; 624 ncpus++; 631 return (ncpus); 661 int ncpus, maxid, rate_adj, retval; local 666 ncpus = 1; 705 ncpus = getcpuinfo(&cpumask, &maxid);
|
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | bhyverun.c | 296 uint64_t ncpus; local 353 * If n was specified check it against computed ncpus 355 ncpus = (uint64_t)s * c * t; 356 if (ncpus > UINT16_MAX || (ns && n != ncpus)) 359 guest_ncpus = ncpus;
|