]> www.infradead.org Git - users/willy/linux.git/commit
mm/sparse: add common helper to mark all memblocks present
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 5 Dec 2018 00:14:20 +0000 (11:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 10 Dec 2018 08:29:15 +0000 (19:29 +1100)
commit1f46d6404a87d70a241af6cfd14d150b3e48a709
tree119ea93ad57bde27f69cac9854eca720608a114f
parent28fe6e58967188e8db0dfd49885e97d8b825030c
mm/sparse: add common helper to mark all memblocks present

Presently the arches arm64, arm and sh have a function which loops through
each memblock and calls memory present. riscv will require a similar
function.

Introduce a common memblocks_present() function that can be used by
all the arches. Subsequent patches will cleanup the arches that
make use of this.

Link: http://lkml.kernel.org/r/20181107205433.3875-3-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
include/linux/mmzone.h
mm/sparse.c