Lines Matching refs:ctl
155 struct sched_control *ctl = (struct sched_control *)param; in sched_tick_handler() local
156 struct sched_bvt_control *bvt_ctl = (struct sched_bvt_control *)ctl->priv; in sched_tick_handler()
162 current = ctl->curr_obj; in sched_tick_handler()
180 static int sched_bvt_init(struct sched_control *ctl) in sched_bvt_init() argument
182 struct sched_bvt_control *bvt_ctl = &per_cpu(sched_bvt_ctl, ctl->pcpu_id); in sched_bvt_init()
185 ASSERT(ctl->pcpu_id == get_pcpu_id(), "Init scheduler on wrong CPU!"); in sched_bvt_init()
187 ctl->priv = bvt_ctl; in sched_bvt_init()
191 initialize_timer(&bvt_ctl->tick_timer, sched_tick_handler, ctl, 0, 0); in sched_bvt_init()
196 static void sched_bvt_deinit(struct sched_control *ctl) in sched_bvt_deinit() argument
198 struct sched_bvt_control *bvt_ctl = (struct sched_bvt_control *)ctl->priv; in sched_bvt_deinit()
218 static void sched_bvt_suspend(struct sched_control *ctl) in sched_bvt_suspend() argument
220 sched_bvt_deinit(ctl); in sched_bvt_suspend()
257 static struct thread_object *sched_bvt_pick_next(struct sched_control *ctl) in sched_bvt_pick_next() argument
259 struct sched_bvt_control *bvt_ctl = (struct sched_bvt_control *)ctl->priv; in sched_bvt_pick_next()
264 struct thread_object *current = ctl->curr_obj; in sched_bvt_pick_next()