Searched refs:cpu (Results 76 - 100 of 266) sorted by relevance

1234567891011

/haiku/src/system/kernel/scheduler/
H A Dlow_latency.cpp29 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 Dpower_saving.cpp33 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 Dscheduler_thread.h390 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 Dscheduler_modes.h23 void (*set_cpu_enabled)(int32 cpu, bool enabled);
/haiku/src/tests/system/kernel/scheduler/
H A Dmain.cpp14 #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 Dint.cpp156 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 Darch_cpu.cpp7 #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 Darch_thread.h12 #include <arch/cpu.h>
/haiku/src/apps/debuganalyzer/model_loader/
H A DModelLoader.h68 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 Dintel.cpp13 #include <cpu.h>
59 "cpu/generic_x86/intel/v1",
H A Dvia.cpp13 #include <cpu.h>
71 "cpu/generic_x86/via/v1",
H A Damd.cpp13 #include <cpu.h>
65 "cpu/generic_x86/amd/v1",
/haiku/headers/private/kernel/arch/x86/
H A Ddescriptors.h50 void x86_descriptors_preboot_init_percpu(kernel_args* args, int cpu);
H A Dmsi.h27 void msi_assign_interrupt_to_cpu(uint32 irq, int32 cpu);
/haiku/headers/private/kernel/arch/riscv64/
H A Darch_kernel.h11 # include <arch/cpu.h>
/haiku/headers/private/kernel/boot/platform/efi/
H A Darch_smp.h13 // 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 Dcpu.cpp7 #include "cpu.h"
14 #include <arch/cpu.h>
/haiku/headers/private/kernel/arch/
H A Dint.h37 int32 arch_int_assign_to_cpu(int32 irq, int32 cpu);
/haiku/src/add-ons/kernel/power/cpufreq/intel_pstates/
H A Dintel_pstates.cpp16 #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 Darch_smp.cpp118 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 DDataSource.cpp91 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 Darch_int.cpp14 #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 Dkscheduler.h11 #include <cpu.h>
82 void scheduler_set_cpu_enabled(int32 cpu, bool enabled);
H A Dint.h42 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 Darch_system_info.cpp26 arch_fill_topology_node(cpu_topology_node_info* node, int32 cpu) argument
63 arch_get_frequency(uint64 *frequency, int32 cpu) argument

Completed in 180 milliseconds

1234567891011