/freebsd-9.3-release/contrib/bind9/lib/isc/unix/ |
H A D | os.c | 66 int ncpu, result; local 69 len = sizeof(ncpu); 70 result = sysctlbyname("hw.ncpu", &ncpu, &len , 0, 0); 72 return (ncpu);
|
/freebsd-9.3-release/contrib/ntp/lib/isc/unix/ |
H A D | os.c | 66 int ncpu, result; local 69 len = sizeof(ncpu); 70 result = sysctlbyname("hw.ncpu", &ncpu, &len , 0, 0); 72 return (ncpu);
|
/freebsd-9.3-release/tools/tools/ncpus/ |
H A D | biosmptable.c | 68 int ncpu, i; local 76 ncpu = 0; 82 ncpu = 2; 84 ncpu = 0; 98 ncpu++; 125 return ncpu;
|
H A D | acpi.c | 58 static int ncpu; variable 81 ncpu++; 91 ncpu++; 329 ncpu = 0; 331 return (ncpu == 0 ? 1 : ncpu);
|
/freebsd-9.3-release/usr.sbin/pmccontrol/ |
H A D | pmccontrol.c | 137 int c, error, i, j, ncpu, npmc, t; local 143 if ((ncpu = pmc_ncpu()) < 0) 148 for (c = 0; c < ncpu; c++) { 159 if ((map = malloc(npmc * ncpu)) == NULL) 162 (void) memset(map, PMCC_OP_IGNORE, npmc*ncpu); 171 if (cpu >= ncpu) 192 for (i = 0; i < ncpu; i++) { 200 for (i = 0; i < ncpu; i++) 228 int c, cpu, n, npmc, ncpu; local 250 ncpu [all...] |
/freebsd-9.3-release/contrib/ofed/management/infiniband-diags/src/ |
H A D | ibsysstat.c | 190 int ncpu = 0; local 199 ncpu++; 200 if (ncpu > MAX_CPUS) 205 if (!ncpu || !(s = strchr(line, ':'))) 211 cpus[ncpu-1].model = strdup(s+1); 213 cpus[ncpu-1].mhz = strdup(s+1); 218 DEBUG("ncpu %d", ncpu); 220 return ncpu;
|
/freebsd-9.3-release/sys/mips/nlm/hal/ |
H A D | pic.h | 273 int node, ncpu; local 276 ncpu = cpu & 0x1f; 279 if (ncpu > 15)
|
/freebsd-9.3-release/libexec/atrun/ |
H A D | atrun.c | 461 size_t ncpu, ncpusz; local 505 if (sysctlbyname("hw.ncpu", &ncpu, &ncpusz, NULL, 0) < 0) 506 ncpu = 1; 507 load_avg = LOADAVG_MX * ncpu;
|
/freebsd-9.3-release/sys/amd64/amd64/ |
H A D | mp_machdep.c | 1112 u_int ncpu; local 1114 ncpu = mp_ncpus - 1; /* does not shootdown self */ 1115 if (ncpu < 1) 1124 while (smp_tlb_wait < ncpu) 1132 int cpu, ncpu, othercpus; local 1150 ncpu = othercpus; 1153 ncpu = 0; 1160 ncpu++; 1163 while (smp_tlb_wait < ncpu)
|
/freebsd-9.3-release/sys/i386/i386/ |
H A D | mp_machdep.c | 1217 u_int ncpu; local 1219 ncpu = mp_ncpus - 1; /* does not shootdown self */ 1220 if (ncpu < 1) 1229 while (smp_tlb_wait < ncpu) 1237 int cpu, ncpu, othercpus; local 1255 ncpu = othercpus; 1258 ncpu = 0; 1265 ncpu++; 1268 while (smp_tlb_wait < ncpu)
|
/freebsd-9.3-release/sys/i386/xen/ |
H A D | mp_machdep.c | 990 u_int ncpu; local 993 ncpu = mp_ncpus - 1; /* does not shootdown self */ 994 if (ncpu < 1) 1006 while (smp_tlb_wait < ncpu) 1015 int cpu, ncpu, othercpus; local 1037 ncpu = othercpus; 1040 ncpu = 0; 1047 ncpu++; 1050 while (smp_tlb_wait < ncpu)
|
/freebsd-9.3-release/tools/tools/sysbuild/ |
H A D | sysbuild.sh | 76 ncpu=`sysctl -n kern.smp.cpus` 77 if [ $ncpu -gt 1 ] ; then 78 JARG="-j $ncpu"
|
/freebsd-9.3-release/usr.sbin/mptable/ |
H A D | mptable.c | 285 int ncpu; variable 652 ncpu = 2; 727 ncpu = 0; 899 ++ncpu;
|
/freebsd-9.3-release/usr.bin/systat/ |
H A D | vmstat.c | 139 static int ncpu; variable 437 etime /= ncpu; 793 size = sizeof(ncpu); 794 if (sysctlbyname("hw.ncpu", &ncpu, &size, NULL, 0) < 0 || 795 size != sizeof(ncpu)) 796 ncpu = 1;
|
/freebsd-9.3-release/usr.sbin/pmcstat/ |
H A D | pmcstat.c | 556 int hcpu, option, npmc, ncpu; local 619 if (sysctlbyname("hw.ncpu", &ncpu, &dummy, NULL, 0) < 0) 621 for (hcpu = 0; hcpu < ncpu; hcpu++) 635 for (hcpu = 0; hcpu < ncpu; hcpu++)
|
/freebsd-9.3-release/sys/kern/ |
H A D | kern_mib.c | 150 SYSCTL_INT(_hw, HW_NCPU, ncpu, CTLFLAG_RD|CTLFLAG_CAPRD,
|