]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: introduce helper function set_max_mapnr()
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:52:03 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:51 +0000 (16:37 +1000)
commitc5826727d9c736500a65c048296ee3b5cdd06c58
tree2128c796df6779ae7aff0c2e528e18602691e8e7
parent96e52e5700ea9d3aee0d3ebe82e10c88065b5586
mm: introduce helper function set_max_mapnr()

Introduce a helper function set_max_mapnr() to set global variable
max_mapnr.

Also unify condition compilation for max_mapnr with
CONFIG_NEED_MULTIPLE_NODES instead of CONFIG_DISCONTIGMEM.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h