* Make all threads sleeping on the specified identifier runnable. */
| 341 | * Make all threads sleeping on the specified identifier runnable. |
| 342 | */ |
| 343 | void |
| 344 | wakeup(const void *ident) |
| 345 | { |
| 346 | int wakeup_swapper; |
| 347 | |
| 348 | sleepq_lock(ident); |
| 349 | wakeup_swapper = sleepq_broadcast(ident, SLEEPQ_SLEEP, 0, 0); |
| 350 | sleepq_release(ident); |
| 351 | if (wakeup_swapper) { |
| 352 | KASSERT(ident != &proc0, |
| 353 | ("wakeup and wakeup_swapper and proc0")); |
| 354 | kick_proc0(); |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | /* |
| 359 | * Make a thread sleeping on the specified identifier runnable. |
no test coverage detected