]> 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, 27 Jun 2013 23:51:23 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:28 +0000 (16:37 +1000)
commite41de3ae5bfeb6cb100130009f41d0eedcc1cbbb
tree694130ab5d19685a2b43c1fe9920af8f0090d89b
parent16a19442527f7f5243010000970d0a6c954f576c
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