Lines Matching refs:bvt_ctl
77 static void update_svt(struct sched_bvt_control *bvt_ctl) in update_svt() argument
82 if (!list_empty(&bvt_ctl->runqueue)) { in update_svt()
83 tmp_obj = get_first_item(&bvt_ctl->runqueue, struct thread_object, data); in update_svt()
85 bvt_ctl->svt = obj_data->avt; in update_svt()
97 struct sched_bvt_control *bvt_ctl = in runqueue_add() local
109 if (list_empty(&bvt_ctl->runqueue)) { in runqueue_add()
110 list_add(&data->list, &bvt_ctl->runqueue); in runqueue_add()
112 list_for_each(pos, &bvt_ctl->runqueue) { in runqueue_add()
121 list_add_tail(&data->list, &bvt_ctl->runqueue); in runqueue_add()
148 struct sched_bvt_control *bvt_ctl = (struct sched_bvt_control *)obj->sched_ctl->priv; in get_svt() local
150 return bvt_ctl->svt; in get_svt()
156 struct sched_bvt_control *bvt_ctl = (struct sched_bvt_control *)ctl->priv; in sched_tick_handler() local
169 if (!list_empty(&bvt_ctl->runqueue)) { in sched_tick_handler()
182 struct sched_bvt_control *bvt_ctl = &per_cpu(sched_bvt_ctl, ctl->pcpu_id); in sched_bvt_init() local
187 ctl->priv = bvt_ctl; in sched_bvt_init()
188 INIT_LIST_HEAD(&bvt_ctl->runqueue); in sched_bvt_init()
191 initialize_timer(&bvt_ctl->tick_timer, sched_tick_handler, ctl, 0, 0); in sched_bvt_init()
198 struct sched_bvt_control *bvt_ctl = (struct sched_bvt_control *)ctl->priv; in sched_bvt_deinit() local
199 del_timer(&bvt_ctl->tick_timer); in sched_bvt_deinit()
259 struct sched_bvt_control *bvt_ctl = (struct sched_bvt_control *)ctl->priv; in sched_bvt_pick_next() local
274 update_svt(bvt_ctl); in sched_bvt_pick_next()
276 del_timer(&bvt_ctl->tick_timer); in sched_bvt_pick_next()
278 if (!list_empty(&bvt_ctl->runqueue)) { in sched_bvt_pick_next()
279 first = bvt_ctl->runqueue.next; in sched_bvt_pick_next()
280 sec = (first->next == &bvt_ctl->runqueue) ? NULL : first->next; in sched_bvt_pick_next()
302 update_timer(&bvt_ctl->tick_timer, cpu_ticks() + run_countdown * tick_period, 0); in sched_bvt_pick_next()
303 (void)add_timer(&bvt_ctl->tick_timer); in sched_bvt_pick_next()