]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: introduce helper function set_max_mapnr()
authorJiang Liu <liuj97@gmail.com>
Wed, 19 Jun 2013 00:06:35 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:22 +0000 (17:13 +1000)
commit45b4d7ae092118f3f1bc93541ac720a2d11630b8
tree9d6404aa689368f426c1edf0de7fc2e04bc5f6b0
parenta3dc990186ad4a9af299d7794c0c001a80627367
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