Messages in this thread |  | | | From | Namhyung Kim <> | | Subject | [Question] sched/rt_mutex: re-enqueue_task on rt_mutex_setprio() | | Date | Sat, 07 Jul 2012 14:44:09 +0900 |
| |
Hi,
I have a question on the code below:
void rt_mutex_setprio(struct task_struct *p, int prio) { ... if (on_rq) enqueue_task(rq, p, oldprio < prio ? ENQUEUE_HEAD : 0); When enqueueing @p with new @prio, it seems put @p at the head of a rq if appropriate. I guess it's the case of boosting @p with higher priority, right? So Should the conditional be a reverse form (provided that less number means higher priority)? Please shed some light on me.
Thanks, Namhyung
|  |