]> 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>
Wed, 19 Jun 2013 00:05:54 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:57 +0000 (17:12 +1000)
commit87eb90938e8aa32c0319f4c27833d622273ffc6d
treef337c5581ac6f10bbaf6fc21a8f07c9d11149b69
parent696b5837adea71f4758f912016bf7915a5d4729e
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