]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Fix incorrect use of bitwise AND
authorAndrea Righi <arighi@nvidia.com>
Fri, 8 Nov 2024 19:51:44 +0000 (20:51 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 8 Nov 2024 19:56:38 +0000 (09:56 -1000)
commit6d594af5bff2e565cae538401142c69182026c38
tree1e4fcb459527f028a9168df6aa0a92e12c0faf2b
parentf6ce6b949304bc7a54dbfea98402080c42bbc9a4
sched_ext: Fix incorrect use of bitwise AND

There is no reason to use a bitwise AND when checking the conditions to
enable NUMA optimization for the built-in CPU idle selection policy, so
use a logical AND instead.

Fixes: f6ce6b949304 ("sched_ext: Do not enable LLC/NUMA optimizations when domains overlap")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Closes: https://lore.kernel.org/lkml/20241108181753.GA2681424@thelio-3990X/
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c