scheduler fixes
Linus,
Please pull the latest sched/urgent git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2023-09-02
# HEAD: 0d6b35283bcf1a379cf20066544af8e6a6b16b46 sched/core: Report correct state for TASK_IDLE | TASK_FREEZABLE
Miscellaneous scheduler fixes: a reporting fix, a static symbol fix, and a kernel-doc fix.
Thanks,
Ingo
------------------>
Costa Shulyupin (1):
sched/core: Add kernel-doc for set_cpus_allowed_ptr()
Hao Jia (1):
sched/fair: Make update_entity_lag() static
NeilBrown (1):
sched/core: Report correct state for TASK_IDLE | TASK_FREEZABLE
include/linux/sched.h | 14 ++++++++++++-- kernel/sched/fair.c | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-)
include/linux/sched.h +12 -2
@@ -1671,7 +1671,7 @@ static inline unsigned int __task_state_index(unsigned int tsk_state,BUILD_BUG_ON_NOT_POWER_OF_2 (TASK_REPORT_MAX ); -if (tsk_state ==TASK_IDLE ) +if ((tsk_state &TASK_IDLE ) ==TASK_IDLE ) state =TASK_REPORT_IDLE ;/*
@@ -1679,7 +1679,7 @@ static inline unsigned int __task_state_index(unsigned int tsk_state,* to userspace, we can make this appear as if the task has gone through * a regular rt_mutex_lock() call. */ -if (tsk_state ==TASK_RTLOCK_WAIT ) +if (tsk_state &TASK_RTLOCK_WAIT ) state =TASK_UNINTERRUPTIBLE ;return fls (state);
@@ -1858,7 +1858,17 @@ extern int task_can_attach(struct task_struct *p);extern int dl_bw_alloc (int cpu,u64 dl_bw);extern void dl_bw_free (int cpu,u64 dl_bw);#ifdef CONFIG_SMP + +/* do_set_cpus_allowed() - consider using set_cpus_allowed_ptr() instead */ extern void do_set_cpus_allowed (struct task_struct *p,const struct cpumask *new_mask); + +/** +* set_cpus_allowed_ptr - set CPU affinity mask of a task +* @p: the task +* @new_mask: CPU affinity mask +* +* Return: zero if successful, or a negative error code +*/ extern int set_cpus_allowed_ptr (struct task_struct *p,const struct cpumask *new_mask);extern int dup_user_cpus_ptr (struct task_struct *dst,struct task_struct *src,int node);extern void release_user_cpus_ptr (struct task_struct *p);
kernel/sched/fair.c +1 -1
@@ -699,7 +699,7 @@ u64 avg_vruntime(struct cfs_rq *cfs_rq)* * XXX could add max_slice to the augmented data to track this. */ -void update_entity_lag (struct cfs_rq *cfs_rq,struct sched_entity *se) +static void update_entity_lag (struct cfs_rq *cfs_rq,struct sched_entity *se) {s64 lag, limit;
The pull request you sent on Sat, 2 Sep 2023 12:09:50 +0200:
The pull request you sent on Sat, 2 Sep 2023 12:09:50 +0200:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gitsched-urgent-2023-09-02
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/c39cbc5b604c7282f210c4a3a743c9f026ed8002
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html