* Set the status bit of the queue corresponding to priority level pri, * indicating that it is non-empty. */
| 349 | * indicating that it is non-empty. |
| 350 | */ |
| 351 | static __inline void |
| 352 | runq_setbit(struct runq *rq, int pri) |
| 353 | { |
| 354 | struct rqbits *rqb; |
| 355 | |
| 356 | rqb = &rq->rq_status; |
| 357 | CTR4(KTR_RUNQ, "runq_setbit: bits=%#x %#x bit=%#x word=%d", |
| 358 | rqb->rqb_bits[RQB_WORD(pri)], |
| 359 | rqb->rqb_bits[RQB_WORD(pri)] | RQB_BIT(pri), |
| 360 | RQB_BIT(pri), RQB_WORD(pri)); |
| 361 | rqb->rqb_bits[RQB_WORD(pri)] |= RQB_BIT(pri); |
| 362 | } |
| 363 | |
| 364 | /* |
| 365 | * Add the thread to the queue specified by its priority, and set the |
no outgoing calls
no test coverage detected