Lines Matching defs:flags
553 static void enqueue_rt_entity(struct sched_rt_entity *rt_se, unsigned int flags);
554 static void dequeue_rt_entity(struct sched_rt_entity *rt_se, unsigned int flags);
1327 * assumes ENQUEUE/DEQUEUE flags match
1329 static inline bool move_entity(unsigned int flags)
1331 if ((flags & (DEQUEUE_SAVE | DEQUEUE_MOVE)) == DEQUEUE_SAVE) {
1349 static void __enqueue_rt_entity(struct sched_rt_entity *rt_se, unsigned int flags)
1369 if (move_entity(flags)) {
1371 if (flags & ENQUEUE_HEAD) {
1385 static void __dequeue_rt_entity(struct sched_rt_entity *rt_se, unsigned int flags)
1390 if (move_entity(flags)) {
1403 static void dequeue_rt_stack(struct sched_rt_entity *rt_se, unsigned int flags)
1417 __dequeue_rt_entity(rt_se, flags);
1423 static void enqueue_rt_entity(struct sched_rt_entity *rt_se, unsigned int flags)
1427 dequeue_rt_stack(rt_se, flags);
1428 cycle_each_sched_rt_entity(rt_se) __enqueue_rt_entity(rt_se, flags);
1432 static void dequeue_rt_entity(struct sched_rt_entity *rt_se, unsigned int flags)
1436 dequeue_rt_stack(rt_se, flags);
1442 __enqueue_rt_entity(rt_se, flags);
1468 static void enqueue_task_rt(struct rq *rq, struct task_struct *p, int flags)
1471 bool sync = !!(flags & ENQUEUE_WAKEUP_SYNC);
1473 if (flags & ENQUEUE_WAKEUP) {
1477 enqueue_rt_entity(rt_se, flags);
1485 static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int flags)
1490 dequeue_rt_entity(rt_se, flags);
1533 static int select_task_rq_rt(struct task_struct *p, int cpu, int sd_flag, int flags)
1540 bool sync = !!(flags & WF_SYNC);
1665 static void check_preempt_curr_rt(struct rq *rq, struct task_struct *p, int flags)
2040 if (sd->flags & SD_WAKE_AFFINE) {
2743 unsigned long flags;
2745 raw_spin_lock_irqsave(&busiest_rq->lock, flags);
2767 raw_spin_unlock_irqrestore(&busiest_rq->lock, flags);
3111 unsigned long flags;
3114 raw_spin_lock_irqsave(&def_rt_bandwidth.rt_runtime_lock, flags);
3123 raw_spin_unlock_irqrestore(&def_rt_bandwidth.rt_runtime_lock, flags);