Lines Matching defs:cpu
56 #include <machine/cpu.h>
273 int cpu;
284 CPU_FOREACH(cpu) {
285 state = DPCPU_ID_PTR(cpu, timerstate);
289 c = cpu;
308 int cpu, bcast;
340 CPU_FOREACH(cpu) {
341 state = DPCPU_ID_PTR(cpu, timerstate);
346 if (curcpu != cpu) {
362 CPU_FOREACH(cpu) {
363 if (curcpu == cpu)
365 state = DPCPU_ID_PTR(cpu, timerstate);
368 ipi_cpu(cpu, IPI_HARDCLOCK);
484 int cpu;
503 CPU_FOREACH(cpu) {
504 state = DPCPU_ID_PTR(cpu, timerstate);
507 if (!smp_started && cpu != CPU_FIRST())
521 hardclock_sync(cpu);
544 CPU_FOREACH(cpu) {
545 state = DPCPU_ID_PTR(cpu, timerstate);
547 (cpu == curcpu) ? 0 : ( start ? 1 : 2));
554 CPU_FOREACH(cpu) {
555 if (cpu == curcpu)
557 state = DPCPU_ID_PTR(cpu, timerstate);
596 int base, div, cpu;
599 CPU_FOREACH(cpu) {
600 state = DPCPU_ID_PTR(cpu, timerstate);
837 cpu_new_callout(int cpu, sbintime_t bt, sbintime_t bt_opt)
845 curcpu, cpu, (int)(bt_opt >> 32), (u_int)(bt_opt & 0xffffffff),
848 KASSERT(!CPU_ABSENT(cpu), ("Absent CPU %d", cpu));
849 state = DPCPU_ID_PTR(cpu, timerstate);
871 if ((timer->et_flags & ET_FLAGS_PERCPU) == 0 || cpu == curcpu) {
881 ipi_cpu(cpu, IPI_HARDCLOCK);