Lines Matching refs:p
65 static inline void psi_enqueue(struct task_struct *p, bool wakeup) in psi_enqueue() argument
72 if (!wakeup || p->sched_psi_wake_requeue) { in psi_enqueue()
73 if (p->flags & PF_MEMSTALL) in psi_enqueue()
75 if (p->sched_psi_wake_requeue) in psi_enqueue()
76 p->sched_psi_wake_requeue = 0; in psi_enqueue()
78 if (p->in_iowait) in psi_enqueue()
82 psi_task_change(p, clear, set); in psi_enqueue()
85 static inline void psi_dequeue(struct task_struct *p, bool sleep) in psi_dequeue() argument
93 if (p->flags & PF_MEMSTALL) in psi_dequeue()
96 if (p->in_iowait) in psi_dequeue()
100 psi_task_change(p, clear, set); in psi_dequeue()
103 static inline void psi_ttwu_dequeue(struct task_struct *p) in psi_ttwu_dequeue() argument
112 if (unlikely(p->in_iowait || (p->flags & PF_MEMSTALL))) { in psi_ttwu_dequeue()
117 if (p->in_iowait) in psi_ttwu_dequeue()
119 if (p->flags & PF_MEMSTALL) in psi_ttwu_dequeue()
122 rq = __task_rq_lock(p, &rf); in psi_ttwu_dequeue()
123 psi_task_change(p, clear, 0); in psi_ttwu_dequeue()
124 p->sched_psi_wake_requeue = 1; in psi_ttwu_dequeue()
138 static inline void psi_enqueue(struct task_struct *p, bool wakeup) {} in psi_enqueue() argument
139 static inline void psi_dequeue(struct task_struct *p, bool sleep) {} in psi_dequeue() argument
140 static inline void psi_ttwu_dequeue(struct task_struct *p) {} in psi_ttwu_dequeue() argument