Skip to content

Commit 9b1b234

Browse files
Peng LiuPeter Zijlstra
authored andcommitted
sched: correct SD_flags returned by tl->sd_flags()
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Reviewed-by: Valentin Schneider <[email protected]> Link: https://lkml.kernel.org/r/20200609150936.GA13060@iZj6chx1xj0e0buvshuecpZ
1 parent 3ea2f09 commit 9b1b234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ sd_init(struct sched_domain_topology_level *tl,
13281328
sd_flags = (*tl->sd_flags)();
13291329
if (WARN_ONCE(sd_flags & ~TOPOLOGY_SD_FLAGS,
13301330
"wrong sd_flags in topology description\n"))
1331-
sd_flags &= ~TOPOLOGY_SD_FLAGS;
1331+
sd_flags &= TOPOLOGY_SD_FLAGS;
13321332

13331333
/* Apply detected topology flags */
13341334
sd_flags |= dflags;

0 commit comments

Comments
 (0)