sched/topology: Simplify sched_group_mask() usage
authorPeter Zijlstra <peterz@infradead.org>
Mon, 1 May 2017 06:51:05 +0000 (08:51 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 15 May 2017 08:15:33 +0000 (10:15 +0200)
commitaf218122b103900fa33d408aea0c2468791e698c
tree14382323899a0c140c07e71b27c431a10ac70b36
parent0c0e776a9b0f21ac41d4c6982c57493928524dba
sched/topology: Simplify sched_group_mask() usage

While writing the comments, it occurred to me that:

  sg_cpus & sg_mask == sg_mask

at least conceptually; the !overlap case sets the all 1s mask. If we
correct that we can simplify things and directly use sg_mask.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c
kernel/sched/topology.c