From: Uwe Kleine-König Date: Tue, 10 Jan 2012 23:08:00 +0000 (-0800) Subject: bootmem: micro optimize freeing pages in bulk X-Git-Tag: v3.3-rc1~113^2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9571a982903bf9dcbca2479fd3e7dafd2211ecf9;p=pandora-kernel.git 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 Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed