/haiku/src/system/kernel/scheduler/ |
H A D | low_latency.cpp | 29 set_cpu_enabled(int32 /* cpu */, bool /* enabled */) 116 cpu_ent* cpu = get_cpu_struct(); 117 SpinLocker locker(cpu->irqs_lock); 120 irq_assignment* irq = (irq_assignment*)list_get_first_item(&cpu->irqs); 127 irq = (irq_assignment*)list_get_next_item(&cpu->irqs, irq); 145 CoreEntry* core = CoreEntry::GetCore(cpu->cpu_num);
|
H A D | power_saving.cpp | 33 set_cpu_enabled(int32 cpu, bool enabled) argument 173 cpu_ent* cpu = get_cpu_struct(); 174 if (smallTaskCore == CoreEntry::GetCore(cpu->cpu_num)) 177 SpinLocker locker(cpu->irqs_lock); 178 while (list_get_first_item(&cpu->irqs) != NULL) { 179 irq_assignment* irq = (irq_assignment*)list_get_first_item(&cpu->irqs); 184 if (newCPU != cpu->cpu_num) 205 cpu_ent* cpu = get_cpu_struct(); 206 SpinLocker locker(cpu->irqs_lock); 209 irq_assignment* irq = (irq_assignment*)list_get_first_item(&cpu [all...] |
H A D | scheduler_thread.h | 390 ASSERT(fThread->cpu != NULL); 391 CPUEntry* cpu = CPUEntry::GetCPU(fThread->cpu->cpu_num); local 393 CPURunQueueLocker _(cpu); 397 cpu->PushFront(this, priority); 433 CPUEntry* cpu = CPUEntry::GetCPU(fThread->previous_cpu->cpu_num); local 435 CPURunQueueLocker _(cpu); 439 ThreadData* top = cpu->PeekThread(); 442 cpu->PushBack(this, priority); 463 CPUEntry* cpu local [all...] |
H A D | scheduler_modes.h | 23 void (*set_cpu_enabled)(int32 cpu, bool enabled);
|
/haiku/src/tests/system/kernel/scheduler/ |
H A D | main.cpp | 14 #include <cpu.h> 21 {"cpu", required_argument, NULL, 'c'}, 33 virtual void Rescheduled() { fOnCPU[fThread.cpu->cpu_num]++; } 114 printf(" %p %10Ld %s, prio %ld, cpu:", &fThread, fThread.kernel_time, 151 fIdleThread.GetThread()->cpu = &fCPU; 153 fThread = spawn_thread(&_Run, (BString("cpu ") << num).String(), 204 CPU* cpu = (CPU*)self; local 205 cpu->_Run(); 235 CPU* cpu = (CPU*)tls_get(sCPUIndexSlot); local 236 return cpu 263 CPU* cpu = (CPU*)tls_get(sCPUIndexSlot); local 290 _local_timer_cancel_event(int cpu, timer *event) argument [all...] |
/haiku/src/system/kernel/ |
H A D | int.cpp | 156 if (sVectors[i].assigned_cpu->cpu != -1) 157 kprintf(", cpu %" B_PRId32, sVectors[i].assigned_cpu->cpu); 159 kprintf(", cpu -"); 219 sVectorCPUAssignments[i].cpu = -1; 366 cpu_ent* cpu = get_cpu_struct(); local 370 cpu->interrupt_time += deltaTime; 372 cpu->irq_time += deltaTime; 467 && sVectors[vector].assigned_cpu->cpu == -1) { 471 sVectors[vector].assigned_cpu->cpu 473 cpu_ent* cpu = &gCPU[cpuID]; local 575 cpu_ent* cpu; local 738 cpu_ent* cpu = &gCPU[oldCPU]; local [all...] |
/haiku/src/system/boot/platform/u-boot/arch/ppc/ |
H A D | arch_cpu.cpp | 7 #include "cpu.h" 15 #include <arch/cpu.h> 43 // FIXME: this is ugly; introduce a cpu type in kernel args 60 while (of_get_next_device(&cookie, cpus, "cpu", cpuPath, 67 int cpu = of_finddevice(cpuPath); local 68 if (cpu == OF_FAILED) { 76 if (of_getprop(cpu, "clock-frequency", &clockFrequency, 4) 83 if (of_getprop(cpu, "bus-frequency", &busFrequency, 4) 90 if (of_getprop(cpu, "timebase-frequency", &timeBaseFrequency, 4) 116 // FDT doesn't list bus frequency on the cpu nod [all...] |
/haiku/headers/private/kernel/arch/m68k/ |
H A D | arch_thread.h | 12 #include <arch/cpu.h>
|
/haiku/src/apps/debuganalyzer/model_loader/ |
H A D | ModelLoader.h | 68 status_t _ProcessEvent(uint32 event, uint32 cpu, 88 void _HandleThreadScheduled(uint32 cpu, 92 void _HandleThreadRemovedFromRunQueue(uint32 cpu, 117 void _AddIdleTime(uint32 cpu, nanotime_t time);
|
/haiku/src/add-ons/kernel/cpu/x86/ |
H A D | intel.cpp | 13 #include <cpu.h> 59 "cpu/generic_x86/intel/v1",
|
H A D | via.cpp | 13 #include <cpu.h> 71 "cpu/generic_x86/via/v1",
|
H A D | amd.cpp | 13 #include <cpu.h> 65 "cpu/generic_x86/amd/v1",
|
/haiku/headers/private/kernel/arch/x86/ |
H A D | descriptors.h | 50 void x86_descriptors_preboot_init_percpu(kernel_args* args, int cpu);
|
H A D | msi.h | 27 void msi_assign_interrupt_to_cpu(uint32 irq, int32 cpu);
|
/haiku/headers/private/kernel/arch/riscv64/ |
H A D | arch_kernel.h | 11 # include <arch/cpu.h>
|
/haiku/headers/private/kernel/boot/platform/efi/ |
H A D | arch_smp.h | 13 // These platforms take inventory of cpu cores from fdt 27 void arch_smp_register_cpu(platform_cpu_info** cpu);
|
/haiku/src/system/boot/platform/riscv/ |
H A D | cpu.cpp | 7 #include "cpu.h" 14 #include <arch/cpu.h>
|
/haiku/headers/private/kernel/arch/ |
H A D | int.h | 37 int32 arch_int_assign_to_cpu(int32 irq, int32 cpu);
|
/haiku/src/add-ons/kernel/power/cpufreq/intel_pstates/ |
H A D | intel_pstates.cpp | 16 #include <cpu.h> 61 static void set_normal_pstate(void* /* dummy */, int cpu); 153 is_cpu_model_supported(cpu_ent* cpu) argument 155 uint8 model = cpu->arch.model + (cpu->arch.extended_model << 4); 157 if (cpu->arch.vendor != VENDOR_INTEL) 160 if (cpu->arch.family != 6) 186 set_normal_pstate(void* /* dummy */, int cpu) argument 225 measure_pstate(&sCPUEntries[cpu]);
|
/haiku/src/system/boot/platform/efi/arch/riscv64/ |
H A D | arch_smp.cpp | 118 uint32 cpu = 0; local 119 while (cpu < sCpuCount && !(sCpus[cpu].id == (uint32)hartId)) 120 cpu++; 122 if (!(cpu < sCpuCount)) 125 info->kernelEntry(&gKernelArgs, cpu); 131 arch_smp_register_cpu(platform_cpu_info** cpu) argument 136 *cpu = NULL; 139 *cpu = &sCpus[sCpuCount];
|
/haiku/src/apps/activitymonitor/ |
H A D | DataSource.cpp | 91 DataSource::CopyForCPU(int32 cpu) const 808 CPUFrequencyDataSource::CPUFrequencyDataSource(int32 cpu) argument 815 _SetCPU(cpu); 841 CPUFrequencyDataSource::CopyForCPU(int32 cpu) const 844 copy->_SetCPU(cpu); 921 CPUFrequencyDataSource::_SetCPU(int32 cpu) argument 923 fCPU = cpu; 926 fLabel.SetToFormat(B_TRANSLATE("CPU %d speed"), (int)cpu + 1); 927 fShortLabel.SetToFormat(B_TRANSLATE("CPU %d"), (int)cpu + 1); 946 fColor = kColors[cpu 953 CPUUsageDataSource(int32 cpu) argument 1076 _SetCPU(int32 cpu) argument [all...] |
/haiku/src/system/kernel/arch/x86/ |
H A D | arch_int.cpp | 14 #include <cpu.h> 23 #include <arch/cpu.h> 244 if (thread->cpu->invoke_scheduler) { 274 cpu_ent* cpu = &gCPU[smp_get_current_cpu()]; local 275 if (cpu->fault_handler != 0) { 279 frame->ip = cpu->fault_handler; 280 frame->bp = cpu->fault_handler_stack_pointer; 356 // IP the cpu will return to this ip 428 arch_int_assign_to_cpu(int32 irq, int32 cpu) argument 433 sCurrentPIC->assign_interrupt_to_cpu(irq, cpu); [all...] |
/haiku/headers/private/kernel/ |
H A D | kscheduler.h | 11 #include <cpu.h> 82 void scheduler_set_cpu_enabled(int32 cpu, bool enabled);
|
H A D | int.h | 42 int32 cpu; member in struct:irq_assignment 86 void assign_io_interrupt_to_cpu(int32 vector, int32 cpu);
|
/haiku/src/system/kernel/arch/m68k/ |
H A D | arch_system_info.cpp | 26 arch_fill_topology_node(cpu_topology_node_info* node, int32 cpu) argument 63 arch_get_frequency(uint64 *frequency, int32 cpu) argument
|