/external/chromium/base/ |
sys_info_openbsd.cc | 16 int ncpu; local 17 size_t size = sizeof(ncpu); 18 if (sysctl(mib, 2, &ncpu, &size, NULL, 0) == -1) { 22 return ncpu;
|
/external/chromium_org/base/ |
sys_info_openbsd.cc | 32 int ncpu; local 33 size_t size = sizeof(ncpu); 34 if (sysctl(mib, arraysize(mib), &ncpu, &size, NULL, 0) < 0) { 38 return ncpu;
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_cpu_detect.c | 239 int mib[2], ncpu; local 245 len = sizeof (ncpu); 246 sysctl(mib, 2, &ncpu, &len, NULL, 0); 247 util_cpu_caps.nr_cpus = ncpu;
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_cpu_detect.c | 239 int mib[2], ncpu; local 245 len = sizeof (ncpu); 246 sysctl(mib, 2, &ncpu, &len, NULL, 0); 247 util_cpu_caps.nr_cpus = ncpu;
|
/external/netperf/ |
netcpu_kstat.c | 75 static int ncpu = 0; local 145 ncpu = 0; 167 fprintf(where,"cpu_ks[%d] getting %p\n",ncpu,ks); 171 cpu_ks[ncpu] = ks; 172 ncpu++; 173 if (ncpu > lib_num_loc_cpus) 178 ncpu,lib_num_loc_cpus); 183 /* note that ncpu could be less than ncpus, but that's okay */
|