Searched refs:cpuCount (Results 1 - 25 of 28) sorted by relevance

12

/haiku/src/system/boot/platform/openfirmware/arch/ppc/
H A Dcpu.cpp49 int cpuCount = 0; local
56 if (cpuCount == 0) {
96 cpuCount++;
99 if (cpuCount == 0) {
104 gKernelArgs.num_cpus = cpuCount;
109 cpuCount * (KERNEL_STACK_SIZE + KERNEL_STACK_GUARD_PAGES * B_PAGE_SIZE),
116 for (int i = 0; i < cpuCount; i++) {
/haiku/src/system/boot/platform/openfirmware/arch/sparc/
H A Dcpu.cpp49 int cpuCount = 0; local
56 if (cpuCount == 0) {
96 cpuCount++;
99 if (cpuCount == 0) {
104 gKernelArgs.num_cpus = cpuCount;
109 cpuCount * (KERNEL_STACK_SIZE + KERNEL_STACK_GUARD_PAGES * B_PAGE_SIZE),
116 for (int i = 0; i < cpuCount; i++) {
/haiku/src/system/boot/platform/u-boot/arch/ppc/
H A Darch_cpu.cpp62 int cpuCount = 0; local
69 if (cpuCount == 0) {
109 cpuCount++;
112 if (cpuCount == 0) {
117 gKernelArgs.num_cpus = cpuCount;
140 cpuCount * (KERNEL_STACK_SIZE + KERNEL_STACK_GUARD_PAGES * B_PAGE_SIZE),
147 for (int i = 0; i < cpuCount; i++) {
/haiku/src/system/kernel/slab/
H A DObjectDepot.cpp214 int cpuCount = smp_get_num_cpus(); local
216 sizeof(depot_cpu_store) * cpuCount, flags);
222 for (int i = 0; i < cpuCount; i++) {
341 int cpuCount = smp_get_num_cpus(); local
342 for (int i = 0; i < cpuCount; i++) {
386 int cpuCount = smp_get_num_cpus(); local
387 for (int i = 0; i < cpuCount; i++) {
425 int cpuCount = smp_get_num_cpus(); local
427 for (int i = 0; i < cpuCount; i++) {
/haiku/headers/private/kernel/
H A Dksystem_info.h25 status_t _user_get_cpu_info(uint32 firstCPU, uint32 cpuCount, cpu_info* info);
/haiku/headers/private/system/
H A Dsystem_info.h52 status_t __get_cpu_info(uint32 firstCPU, uint32 cpuCount, cpu_info* info);
/haiku/src/system/kernel/arch/x86/
H A Darch_smp.cpp146 int32 cpuCount = smp_get_num_cpus(); local
150 logicalModeCPUs = cpuCount;
152 logicalModeCPUs = std::min(cpuCount, int32(8));
169 for (; i < cpuCount; i++) {
/haiku/src/system/kernel/arch/x86/32/
H A Dsyscalls.cpp41 int cpuCount = smp_get_num_cpus(); local
43 for (i = 0; i < cpuCount; i++) {
/haiku/src/system/kernel/scheduler/
H A Dscheduler.cpp608 build_topology_mappings(int32& cpuCount, int32& coreCount, int32& packageCount) argument
610 cpuCount = smp_get_num_cpus();
612 sCPUToCore = new(std::nothrow) int32[cpuCount];
617 sCPUToPackage = new(std::nothrow) int32[cpuCount];
623 for (int32 i = 0; i < cpuCount; i++) {
629 for (int32 i = 0; i < cpuCount; i++) {
649 int32 cpuCount, coreCount, packageCount; local
650 status_t result = build_topology_mappings(cpuCount, coreCount,
667 gCPUEntries = new(std::nothrow) CPUEntry[cpuCount];
687 for (int32 i = 0; i < cpuCount;
709 int32 cpuCount = smp_get_num_cpus(); local
[all...]
H A Dscheduler_cpu.cpp366 CPUPriorityHeap::CPUPriorityHeap(int32 cpuCount) argument
368 Heap<CPUEntry, int32>(cpuCount)
749 int32 cpuCount = smp_get_num_cpus(); local
757 for (int32 i = 0; i < cpuCount; i++)
H A Dscheduler_cpu.h118 CPUPriorityHeap(int32 cpuCount);
/haiku/src/tests/system/kernel/scheduler/
H A Dmain.cpp357 uint32 cpuCount = 1; local
370 cpuCount = strtol(optarg, 0, NULL);
371 if (cpuCount <= 0 || cpuCount > 64) {
379 start_cpus(cpuCount);
/haiku/src/add-ons/kernel/power/cpufreq/intel_pstates/
H A Dintel_pstates.cpp173 int32 cpuCount = smp_get_num_cpus();
174 for (int32 i = 0; i < cpuCount; i++) {
192 sCPUEntries = new(std::nothrow) CPUEntry[cpuCount];
/haiku/src/system/kernel/
H A Dtimer.cpp164 int32 cpuCount = smp_get_num_cpus(); local
165 for (int32 i = 0; i < cpuCount; i++) {
232 int32 cpuCount = smp_get_num_cpus(); local
233 for (int32 i = 0; i < cpuCount; i++)
H A Dsystem_info.cpp494 get_cpu_info(uint32 firstCPU, uint32 cpuCount, cpu_info* info) argument
496 if (cpuCount == 0)
501 uint32 count = std::min(cpuCount, smp_get_num_cpus() - firstCPU);
576 _user_get_cpu_info(uint32 firstCPU, uint32 cpuCount, cpu_info* userInfo) argument
581 return get_cpu_info(firstCPU, cpuCount, userInfo);
H A Dheap.cpp1919 int32 cpuCount = MIN(smp_get_num_cpus(), local
1922 for (int32 i = 0; i < cpuCount; i++) {
1923 uint32 heapIndex = heap_index_for(size, cpuNumber++ % cpuCount);
2285 int32 cpuCount = MIN(smp_get_num_cpus(), local
2288 for (int32 i = 0; i < cpuCount; i++) {
2289 uint32 heapIndex = heap_index_for(size, cpuNumber++ % cpuCount);
H A DUserTimer.cpp635 int32 cpuCount = smp_get_num_cpus(); local
636 for (int32 i = 0; i < cpuCount; i++) {
/haiku/src/apps/text_search/
H A DGrepper.cpp259 char cpuCount[8]; local
262 snprintf(cpuCount, sizeof(cpuCount), "%" B_PRIu32, sys_info.cpu_count);
264 argv[argc++] = cpuCount;
/haiku/src/system/libroot/os/
H A Dsystem_info.cpp157 __get_cpu_info(uint32 firstCPU, uint32 cpuCount, cpu_info* info) argument
159 return _kern_get_cpu_info(firstCPU, cpuCount, info);
/haiku/src/apps/showimage/
H A DFilter.cpp259 int32 cpuCount = 0; local
262 cpuCount++;
264 if (cpuCount == 0)
265 cpuCount = 1;
267 return cpuCount;
/haiku/src/system/kernel/arch/ppc/
H A Darch_int.cpp314 int cpuCount = smp_get_num_cpus(); local
315 for (int i = 0; i < cpuCount; i++) {
/haiku/src/system/kernel/arch/arm/paging/
H A Darm_physical_page_mapper_large_memory.cpp455 int32 cpuCount = smp_get_num_cpus(); local
456 for (int32 i = 0; i < cpuCount; i++)
/haiku/src/system/kernel/arch/x86/paging/
H A Dx86_physical_page_mapper_large_memory.cpp451 int32 cpuCount = smp_get_num_cpus(); local
452 for (int32 i = 0; i < cpuCount; i++)
/haiku/src/system/kernel/arch/m68k/paging/
H A Dm68k_physical_page_mapper_large_memory.cpp454 int32 cpuCount = smp_get_num_cpus(); local
455 for (int32 i = 0; i < cpuCount; i++)
/haiku/src/apps/debuganalyzer/gui/main_window/
H A DSchedulingPage.cpp821 int32 cpuCount = fModel->CountCPUs(); local
822 int32 missingThreads = cpuCount;
823 Model::Thread* runningThreads[cpuCount];
824 memset(runningThreads, 0, sizeof(Model::Thread*) * cpuCount);
903 for (int32 i = 0; i < cpuCount; i++) {

Completed in 312 milliseconds

12