Searched refs:cpus (Results 1 - 15 of 15) sorted by path

/haiku-fatelf/3rdparty/mmu_man/onlinedemo/
H A Dhaiku.php96 // max number of cpus for the VM, no more than 8
/haiku-fatelf/src/bin/coreutils/lib/
H A Dgetloadavg.c475 static unsigned int cpus = 0;
718 if (cpus == 0)
749 cpus = c;
750 samples = cpus < 2 ? 3 : (2 * cpus / 3);
773 loadavg[elem++] = load / samples / cpus;
474 static unsigned int cpus = 0; variable
/haiku-fatelf/src/bin/
H A Dtop.c50 static int cpus; /* how many cpus we are runing on */ variable
126 * Remember: for multiple CPUs, multiply the interval by # cpus
132 return ((100.0 * spent) / (cpus * interval));
294 cpu_perc(cpus * uinterval - (gtotal + idletime), uinterval));
421 cpus = sysinfo.cpu_count;
/haiku-fatelf/src/system/boot/platform/openfirmware/arch/ppc/
H A Dcpu.cpp29 // iterate through the "/cpus" node to find all CPUs
30 int cpus = of_finddevice("/cpus"); local
31 if (cpus == OF_FAILED) {
32 printf("boot_arch_cpu_init(): Failed to open \"/cpus\"!\n");
39 while (of_get_next_device(&cookie, cpus, "cpu", cpuPath,
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/MyNetwork/
H A DMyNetView.cpp306 hostInfo.cpus = 0;
401 if (hostInfo.cpus > 0)
407 if (hostInfo.cpus > 0)
413 if (hostInfo.cpus > 0)
419 if (hostInfo.cpus > 0)
421 sprintf(buf, "%ld", hostInfo.cpus);
425 if (hostInfo.cpus > 0)
640 view->hostInfo.cpus = B_LENDIAN_TO_HOST_INT32(view->hostInfo.cpus);
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/server-1.2.6/
H A Dbeserved_server.c530 info->cpus = B_HOST_TO_LENDIAN_INT32(sysinfo.cpu_count);
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/server-Windows/
H A DBeServed.cpp614 info->cpus = systemInfo.dwNumberOfProcessors;
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/server/
H A Dbeserved_server.c682 info->cpus = B_HOST_TO_LENDIAN_INT32(sysinfo.cpu_count);
/haiku-fatelf/src/tests/system/benchmarks/libMicro/
H A Dcachetocache.c33 * solaris features to find and bind to cpus in the current
62 static processorid_t cpus[1024]; variable
101 if (pset_info(PS_MYID, NULL, &ncpu, cpus) < 0) {
126 cpu = cpus[(pthread_self() - 1) % ncpu],
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/threads/pi_test/
H A Dpitest-1.c47 int cpus; variable
171 DPRINTF(stdout, "# COLUMNS %d Time TL TP ", 2 + cpus);
172 for (i = 0; i < (cpus - 1); i++)
181 for (i = 0; i < cpus + 1; i++)
230 pthread_t threads[cpus - 1], threadsample, threadtp, threadtl, threadtb;
237 cpus = sysconf(_SC_NPROCESSORS_ONLN);
257 DPRINTF(stderr,"Main Thread: start %d TF thread\n", cpus-1);
258 for (i = 0; i < cpus - 1; i++)
316 for (i = 2; i < cpus - 1; i++)
H A Dpitest-2.c49 int cpus; variable
172 DPRINTF(stdout, "# COLUMNS %d Time TL TP1 TP2 ", 3 + cpus);
173 for (i = 0; i < (cpus - 1); i++)
182 for (i = 0; i < cpus + 2; i++)
256 pthread_t threads[cpus - 1];
264 cpus = sysconf(_SC_NPROCESSORS_ONLN);
284 DPRINTF(stderr,"Main Thread: Creating %d TF threads \n", cpus - 1);
285 for (i = 0; i < cpus - 1; i++)
353 for (i = 2; i < cpus - 1; i++)
H A Dpitest-3.c49 int cpus; variable
183 DPRINTF(stdout, "# COLUMNS %d Time TL TP1 TP2 ", 3 + cpus);
185 for (i = 0; i < (cpus - 1); i++)
195 for (i = 0; i < cpus + 2; i++)
271 pthread_t threads[cpus - 1];
280 cpus = sysconf(_SC_NPROCESSORS_ONLN);
300 DPRINTF(stderr,"Main Thread: Creating %d TF threads\n", cpus-1);
301 for (i = 0; i < cpus - 1; i++)
369 for (i = 2; i < cpus - 1; i++)
H A Dpitest-4.c50 int cpus; variable
153 DPRINTF(stdout, "# COLUMNS %d Time TL TP ", 2 + cpus);
154 for (i = 0; i < (cpus - 1); i++)
163 for (i = 0; i < cpus + 1; i++)
244 pthread_t threads[cpus - 1];
253 cpus = sysconf(_SC_NPROCESSORS_ONLN);
273 DPRINTF(stderr,"Main Thread: Creating %d TF threads\n", cpus-1);
274 for (i = 0; i < cpus - 1; i++)
337 for (i = 2; i < cpus - 1; i++)
H A Dpitest-5.c48 int cpus; variable
189 DPRINTF(stdout, "# COLUMNS %d Time TL TP ", 2 + cpus);
191 for (i = 0; i < (cpus - 1); i++)
201 for (i = 0; i < cpus + 1; i++)
252 pthread_t threads[cpus - 1], threadsample, threadtp, threadtl, threadtb;
259 cpus = sysconf(_SC_NPROCESSORS_ONLN);
277 DPRINTF(stderr,"Main Thread: Creating %d TF threads\n", cpus-1);
278 for (i = 0; i < cpus - 1; i++)
331 for (i = 2; i < cpus - 1; i++)
H A Dpitest-6.c47 int cpus; variable
171 DPRINTF(stdout, "# COLUMNS %d Time TP TL ", 2 + cpus);
172 for (i = 0; i < (cpus - 1); i++)
181 for (i = 0; i < cpus + 1; i++)
228 cpus = sysconf(_SC_NPROCESSORS_ONLN);
231 pthread_t threads[cpus - 1], threadsample, threadtp, threadtl, threadtb;
239 cpus = sysconf(_SC_NPROCESSORS_ONLN);
258 DPRINTF(stderr,"Main Thread: Creating %d TF threads\n", cpus-1);
259 for (i = 0; i < cpus - 1; i++)
319 for (i = 2; i < cpus
[all...]

Completed in 277 milliseconds