sched/psi: Fix !CONFIG_PSI stub parameter types for psi_enqueue/dequeue()
PATCH 1/1 sched/psi: Fix !CONFIG_PSI stub parameter types for psi_enqueue/dequeue()
commit 1a6151017ee5 ("sched: psi: pass enqueue/dequeue flags to psi callbacks directly") changed psi_enqueue() and psi_dequeue() to take 'int flags' instead of 'bool migrate', but missed updating the !CONFIG_PSI stubs.
Fix the stubs to match the actual function signatures.
Fixes 1a6151017ee5 ("sched: psi: pass enqueue/dequeue flags to psi callbacks directly")
Signed-off-by Zhan Xusheng <[email protected]>
--- kernel/sched/stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/stats.h +2 -2
@@ -226,8 +226,8 @@ static inline void psi_sched_switch(struct task_struct *prev, }#else /* !CONFIG_PSI: */ -static inline void psi_enqueue (struct task_struct *p,bool migrate) {} -static inline void psi_dequeue (struct task_struct *p,bool migrate) {} +static inline void psi_enqueue (struct task_struct *p,int flags) {} +static inline void psi_dequeue (struct task_struct *p,int flags) {}static inline void psi_ttwu_dequeue (struct task_struct *p) {} static inline void psi_sched_switch(struct task_struct *prev, struct task_struct *next,
Signature · 1 line
2.43.0