| 351 | } |
| 352 | |
| 353 | static void |
| 354 | vm_req_vmdaemon(int req) |
| 355 | { |
| 356 | static int lastrun = 0; |
| 357 | |
| 358 | mtx_lock(&vm_daemon_mtx); |
| 359 | vm_pageout_req_swapout |= req; |
| 360 | if ((ticks > (lastrun + hz)) || (ticks < lastrun)) { |
| 361 | wakeup(&vm_daemon_needed); |
| 362 | lastrun = ticks; |
| 363 | } |
| 364 | mtx_unlock(&vm_daemon_mtx); |
| 365 | } |
| 366 | |
| 367 | static void |
| 368 | vm_daemon(void) |
no test coverage detected