| 331 | } |
| 332 | |
| 333 | static struct callout_cpu * |
| 334 | callout_lock(struct callout *c) |
| 335 | { |
| 336 | struct callout_cpu *cc; |
| 337 | int cpu; |
| 338 | |
| 339 | for (;;) { |
| 340 | cpu = c->c_cpu; |
| 341 | cc = CC_CPU(cpu); |
| 342 | CC_LOCK(cc); |
| 343 | if (cpu == c->c_cpu) |
| 344 | break; |
| 345 | CC_UNLOCK(cc); |
| 346 | } |
| 347 | return (cc); |
| 348 | } |
| 349 | |
| 350 | static void |
| 351 | callout_cc_add(struct callout *c, struct callout_cpu *cc, |
no outgoing calls
no test coverage detected