]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: introduce helper function set_max_mapnr()
authorJiang Liu <liuj97@gmail.com>
Fri, 7 Jun 2013 00:08:15 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:27 +0000 (15:42 +1000)
commit8dbc2130d46d0dbffbb523e72bb4be0a949e0570
treedb5701104bd6d761157db89a0fec678e2064b949
parent0b9313840d5bff887376d535a40eb9983e4002b3
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