| 1498 | } |
| 1499 | |
| 1500 | void |
| 1501 | sched_preempt(struct thread *td) |
| 1502 | { |
| 1503 | |
| 1504 | SDT_PROBE2(sched, , , surrender, td, td->td_proc); |
| 1505 | if (td->td_critnest > 1) { |
| 1506 | td->td_owepreempt = 1; |
| 1507 | } else { |
| 1508 | thread_lock(td); |
| 1509 | mi_switch(SW_INVOL | SW_PREEMPT | SWT_PREEMPT); |
| 1510 | } |
| 1511 | } |
| 1512 | |
| 1513 | void |
| 1514 | sched_userret_slowpath(struct thread *td) |
nothing calls this directly
no test coverage detected