sched/topology: Propagate SMT flags when removing degenerate domain
authorTim C Chen <tim.c.chen@linux.intel.com>
Thu, 4 May 2023 16:09:51 +0000 (09:09 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 8 May 2023 08:58:39 +0000 (10:58 +0200)
commitbf2dc42d6beb890c995b8b09f881ef1b37259107
tree0fa4d27c5b8cccbfba963252d041de71846c35ea
parent519fabc7aaba3f0847cf37d5f9a5740c370eb777
sched/topology: Propagate SMT flags when removing degenerate domain

When a degenerate cluster domain for core with SMT CPUs is removed,
the SD_SHARE_CPUCAPACITY flag in the local child sched group was not
propagated to the new parent.  We need this flag to properly determine
whether the local sched group is SMT.  Set the flag in the local
child sched group of the new parent sched domain.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Link: https://lkml.kernel.org/r/73cf0959eafa53c02e7ef6bf805d751d9190e55d.1683156492.git.tim.c.chen@linux.intel.com
kernel/sched/topology.c