]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page_alloc: when handling percpu_pagelist_fraction, don't unneedly recalulate...
authorCody P Schafer <cody@linux.vnet.ibm.com>
Thu, 23 May 2013 00:37:13 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:09:02 +0000 (16:09 +1000)
commit9bee78b4d54e42c90f606c98c50b3a0a45086973
tree5c3ecb3cfeb7d493abacdfe3ef1c82e819015b79
parentd0adb706159ea1103dbbea4b38e1974fa3e796bc
mm/page_alloc: when handling percpu_pagelist_fraction, don't unneedly recalulate high

Simply moves calculation of the new 'high' value outside the
for_each_possible_cpu() loop, as it does not depend on the cpu.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c