]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bootmem: micro optimize freeing pages in bulk
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 16 Dec 2011 04:49:56 +0000 (15:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:43:39 +0000 (18:43 +1100)
commitbf830e0c0191add12691cb580a0b969b81559c1e
tree2e3b4a51d9732fcf280221bb45208e1c00a51576
parent24d7913cb9ec627e5e1f84213372bcf941555278
bootmem: micro optimize freeing pages in bulk

The first entry of bdata->node_bootmem_map holds the data for
bdata->node_min_pfn up to bdata->node_min_pfn + BITS_PER_LONG - 1.  So the
test for freeing all pages of a single map entry can be slightly relaxed.

Moreover use DIV_ROUND_UP in another place instead of open coding it.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Johannes Weiner <hannes@saeurebad.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/bootmem.c