-
-#ifdef CONFIG_VSERVER_HARDCPU
-/*
- * vx_hold_task - put a task on the hold queue
- */
-static inline
-void vx_hold_task(struct vx_info *vxi,
- struct task_struct *p, struct rq *rq)
-{
- __deactivate_task(p, rq);
- p->state |= TASK_ONHOLD;
- /* a new one on hold */
- vx_onhold_inc(vxi);
- list_add_tail(&p->run_list, &rq->hold_queue);
-}
-
-/*
- * vx_unhold_task - put a task back to the runqueue
- */
-static inline
-void vx_unhold_task(struct vx_info *vxi,
- struct task_struct *p, struct rq *rq)
-{
- list_del(&p->run_list);
- /* one less waiting */
- vx_onhold_dec(vxi);
- p->state &= ~TASK_ONHOLD;
- enqueue_task(p, rq->expired);
- inc_nr_running(p, rq);
-
- if (p->static_prio < rq->best_expired_prio)
- rq->best_expired_prio = p->static_prio;
-}
-#else
-static inline
-void vx_hold_task(struct vx_info *vxi,
- struct task_struct *p, struct rq *rq)
-{
- return;
-}
-
-static inline
-void vx_unhold_task(struct vx_info *vxi,
- struct task_struct *p, struct rq *rq)
-{
- return;
-}
-#endif /* CONFIG_VSERVER_HARDCPU */
-