* Arrange to reschedule if necessary, taking the priorities and * schedulers into account. */
| 302 | * schedulers into account. |
| 303 | */ |
| 304 | static void |
| 305 | maybe_resched(struct thread *td) |
| 306 | { |
| 307 | |
| 308 | THREAD_LOCK_ASSERT(td, MA_OWNED); |
| 309 | if (td->td_priority < curthread->td_priority) |
| 310 | curthread->td_flags |= TDF_NEEDRESCHED; |
| 311 | } |
| 312 | |
| 313 | /* |
| 314 | * This function is called when a thread is about to be put on run queue |
no outgoing calls
no test coverage detected