Lines Matching refs:cpu

64 #include <machine/cpu.h>
115 * The callout cpu exec entities represent informations necessary for
117 * necessary for migrating callouts to the new callout cpu. In particular,
138 * There is one struct callout_cpu per cpu, holding all relevant
172 #define CC_CPU(cpu) (&cc_cpu[(cpu)])
176 #define CC_CPU(cpu) &cc_cpu
185 static void callout_cpu_init(struct callout_cpu *cc, int cpu);
212 * Resets the execution entity tied to a specific callout cpu.
231 * Checks if migration is requested by a specific callout cpu.
285 * Initialize the per-cpu callout structures.
288 callout_cpu_init(struct callout_cpu *cc, int cpu)
305 "callwheel cpu %d", cpu);
318 * Switches the cpu tied to a specific callout.
319 * The function expects a locked incoming callout cpu and returns with
320 * locked outcoming callout cpu.
331 * Avoid interrupts and preemption firing after the callout cpu
333 * may be willing to acquire the callout cpu lock.
354 int cpu;
362 CPU_FOREACH(cpu) {
363 if (cpu == timeout_cpu)
365 cc = CC_CPU(cpu);
367 callout_cpu_init(cc, cpu);
523 int cpu;
526 cpu = c->c_cpu;
528 if (cpu == CPUBLOCK) {
534 cc = CC_CPU(cpu);
536 if (cpu == c->c_cpu)
546 void *arg, int cpu, int flags)
579 cpu_new_callout(cpu, sbt, c->c_time);
919 void (*ftn)(void *), void *arg, int cpu, int flags)
927 if (cpu == -1) {
929 } else if ((cpu >= MAXCPU) ||
930 ((CC_CPU(cpu))->cc_inited == 0)) {
932 panic("Invalid CPU in callout %d", cpu);
995 cpu = c->c_cpu;
1026 cc_migration_cpu(cc, direct) = cpu;
1056 if (c->c_cpu != cpu) {
1074 cc_migration_cpu(cc, direct) = cpu;
1084 (u_int)(to_sbt & 0xffffffff), cpu);
1088 cc = callout_cpu_switch(c, cc, cpu);
1092 callout_cc_add(c, cc, to_sbt, precision, ftn, arg, cpu, flags);
1105 callout_schedule_on(struct callout *c, int to_ticks, int cpu)
1107 return callout_reset_on(c, to_ticks, c->c_func, c->c_arg, cpu);
1173 * If the callout was migrating while the callout cpu lock was
1478 int cpu;
1492 CPU_FOREACH(cpu) {
1493 cc = CC_CPU(cpu);