Commit 727ea34d authored by Chen Yu's avatar Chen Yu Committed by Jie Liu
Browse files

sched/topology: Align group flags when removing degenerate domain

mainline inclusion
from mainline-v6.5-rc4
commit 4efcc8bc
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8E8NN
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4efcc8bc7e08c09c58a2f5cbc2096fbda5b7cf5e



----------------------------------------------------------------------

The flags of the child of a given scheduling domain are used to initialize
the flags of its scheduling groups. When the child of a scheduling domain
is degenerated, the flags of its local scheduling group need to be updated
to align with the flags of its new child domain.

The flag SD_SHARE_CPUCAPACITY was aligned in
Commit bf2dc42d ("sched/topology: Propagate SMT flags when removing degenerate domain").
Further generalize this alignment so other flags can be used later, such as
in cluster-based task wakeup. [1]

Reported-by: default avatarYicong Yang <yangyicong@huawei.com>
Suggested-by: default avatarRicardo Neri <ricardo.neri@intel.com>
Signed-off-by: default avatarChen Yu <yu.c.chen@intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
Reviewed-by: default avatarYicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20230713013133.2314153-1-yu.c.chen@intel.com


Signed-off-by: default avatarJie Liu <liujie375@h-partners.com>
parent 84b410cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment