mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 21:04:14 +00:00
Smart wake-affine is using node-size as the factor currently, but the overhead of the mask operation is high. Thus, this patch introduce the 'sd_llc_size' percpu variable, which will record the highest cache-share domain size, and make it to be the new factor, in order to reduce the overhead and make it more reasonable. Tested-by: Davidlohr Bueso <[email protected]> Tested-by: Michael Wang <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Acked-by: Michael Wang <[email protected]> Cc: Mike Galbraith <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ Tidied up the changelog. ] Signed-off-by: Ingo Molnar <[email protected]>