• P
    sched/topology: Rewrite get_group() · 0c0e776a
    Peter Zijlstra 提交于
    We want to attain:
    
      sg_cpus() & sg_mask() == sg_mask()
    
    for this to be so we must initialize sg_mask() to sg_cpus() for the
    !overlap case (its currently cpumask_setall()).
    
    Since the code makes my head hurt bad, rewrite it into a simpler form,
    inspired by the now fixed overlap code.
    Signed-off-by: NPeter 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: NIngo Molnar <mingo@kernel.org>
    0c0e776a
topology.c 47.0 KB