/freebsd-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/tools/tools/ncpus/ |
H A D | Makefile | 1 # $FreeBSD: releng/10.3/tools/tools/ncpus/Makefile 276486 2014-12-31 23:25:37Z ngie $ 3 PROG= ncpus 5 SRCS= ncpus.c acpi.c
|
/freebsd-10.3-release/contrib/top/ |
H A D | machine.h | 24 int ncpus; member in struct:statics 49 int ncpus; member in struct:system_info
|
H A D | display.c | 169 num_cpus = statics->ncpus; 215 lcpustates = (int *)malloc(num_cpustates * sizeof(int) * statics->ncpus);
|
/freebsd-10.3-release/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; local 211 ncpus = pmc_cpu_max(); 212 error = pmc_tsc_initialize(pmc_mdep, ncpus); 235 error = pmc_core_initialize(pmc_mdep, ncpus); 243 error = pmc_p4_initialize(pmc_mdep, ncpus); 257 error = pmc_p6_initialize(pmc_mdep, ncpus); 265 error = pmc_p5_initialize(pmc_mdep, ncpus); 290 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 | 878 int classindex, error, i, ncpus; local 934 ncpus = pmc_cpu_max(); 937 error = pmc_tsc_initialize(pmc_mdep, ncpus); 1000 int classindex, i, ncpus, pmcclass; local 1024 ncpus = pmc_cpu_max(); 1026 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-10.3-release/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-10.3-release/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-10.3-release/lib/libc/gen/ |
H A D | auxv.c | 67 static int pagesize, osreldate, canary_len, ncpus, pagesizes_len; variable 103 ncpus = aux->a_un.a_val; 163 if (ncpus != 0) { 164 *(int *)buf = ncpus;
|
/freebsd-10.3-release/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-10.3-release/sys/powerpc/pseries/ |
H A D | platform_chrp.c | 450 int i, ncores, ncpus; local 452 ncores = ncpus = 0; 461 ncpus++; 464 if (ncpus % ncores != 0) { 466 "suboptimal (%d CPUS, %d cores)\n", ncpus, ncores); 471 if (ncpus == ncores) 474 return (smp_topo_1level(CG_SHARE_L1, ncpus / ncores, CG_FLAG_SMT));
|
/freebsd-10.3-release/usr.bin/top/ |
H A D | machine.c | 238 static int ncpus; variable 258 if (ncpus == 1) 263 /* Adjust display based on ncpus and the ARC state. */ 278 y_mem += ncpus - 1; 279 y_arc += ncpus - 1; 280 y_swap += ncpus - 1; 281 y_idlecursor += ncpus - 1; 282 y_message += ncpus - 1; 283 y_header += ncpus - 1; 284 y_procs += ncpus [all...] |
/freebsd-10.3-release/sys/kern/ |
H A D | subr_smp.c | 475 int curcpumap, i, ncpus = 0; local 492 ncpus++; 494 if (ncpus == 0) 495 panic("ncpus is 0 with non-zero map"); 500 smp_rv_ncpus = ncpus; 528 while (atomic_load_acq_int(&smp_rv_waiters[3]) < ncpus)
|
/freebsd-10.3-release/usr.bin/vmstat/ |
H A D | vmstat.c | 585 int ncpus; local 595 ncpus = 0; 614 ncpus++; 621 return (ncpus); 651 int ncpus, maxid; local 658 ncpus = 1; 698 ncpus = getcpuinfo(&cpumask, &maxid); 802 pcpustats(ncpus, cpumask, maxid); 1112 pcpustats(int ncpus, u_long cpumask, int maxid) argument
|
/freebsd-10.3-release/usr.sbin/powerd/ |
H A D | powerd.c | 140 static int ncpus = 0; local 156 ncpus = cp_times_len / (sizeof(long) * CPUSTATES); 159 cp_times_len = sizeof(long) * CPUSTATES * ncpus; 166 for (cpu = 0; cpu < ncpus; cpu++) {
|
/freebsd-10.3-release/sys/xen/interface/arch-x86/ |
H A D | xen-mca.h | 382 uint32_t ncpus; member in struct:xen_mc_physcpuinfo
|
/freebsd-10.3-release/cddl/contrib/opensolaris/cmd/lockstat/ |
H A D | lockstat.c | 1094 long ncpus; local 1358 if ((ncpus = sysconf(_SC_NPROCESSORS_ONLN)) == -1) 1368 if ((aggsize = (g_nrecs * g_recsize * 2) / ncpus) < MIN_AGGSIZE) 1391 (void) sprintf(aggstr, "%ldm", ncpus < 32 ? ncpus : 32);
|