Skip to content

Commit 008560e

Browse files
Peng Liugregkh
authored andcommitted
sched: correct SD_flags returned by tl->sd_flags()
[ Upstream commit 9b1b234 ] During sched domain init, we check whether non-topological SD_flags are returned by tl->sd_flags(), if found, fire a waning and correct the violation, but the code failed to correct the violation. Correct this. Fixes: 143e1e2 ("sched: Rework sched_domain topology definition") Signed-off-by: Peng Liu <iwtbavbm@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Reviewed-by: Valentin Schneider <valentin.schneider@arm.com> Link: https://lkml.kernel.org/r/20200609150936.GA13060@iZj6chx1xj0e0buvshuecpZ Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 519252e commit 008560e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ sd_init(struct sched_domain_topology_level *tl,
10981098
sd_flags = (*tl->sd_flags)();
10991099
if (WARN_ONCE(sd_flags & ~TOPOLOGY_SD_FLAGS,
11001100
"wrong sd_flags in topology description\n"))
1101-
sd_flags &= ~TOPOLOGY_SD_FLAGS;
1101+
sd_flags &= TOPOLOGY_SD_FLAGS;
11021102

11031103
*sd = (struct sched_domain){
11041104
.min_interval = sd_weight,

0 commit comments

Comments
 (0)