aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorVlastimil Babka <[email protected]>2020-12-14 19:10:43 -0800
committerLinus Torvalds <[email protected]>2020-12-15 12:13:43 -0800
commit0a8b4f1d5bf4108cfd2877223bf125b1fa1dc4b1 (patch)
treedf79e11f5e4755c3cf9d128e1384528f0fd8464e /lib/mpi/mpi-cmp.c
parent7115ac6ef0b26017676e88a44a0b40c2d1d99299 (diff)
mm, page_alloc: calculate pageset high and batch once per zone
We currently call pageset_set_high_and_batch() for each possible cpu, which repeats the same calculations of high and batch values. Instead call the function just once per zone, and make it apply the calculated values to all per-cpu pagesets of the zone. This also allows removing the zone_pageset_init() and __zone_pcp_update() wrappers. No functional change. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Vlastimil Babka <[email protected]> Reviewed-by: Oscar Salvador <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Pankaj Gupta <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions