| 373 | } |
| 374 | |
| 375 | void |
| 376 | wakeup_any(const void *ident) |
| 377 | { |
| 378 | int wakeup_swapper; |
| 379 | |
| 380 | sleepq_lock(ident); |
| 381 | wakeup_swapper = sleepq_signal(ident, SLEEPQ_SLEEP | SLEEPQ_UNFAIR, |
| 382 | 0, 0); |
| 383 | sleepq_release(ident); |
| 384 | if (wakeup_swapper) |
| 385 | kick_proc0(); |
| 386 | } |
| 387 | |
| 388 | /* |
| 389 | * Signal sleeping waiters after the counter has reached zero. |
no test coverage detected