diff options
| author | David Hildenbrand <david@redhat.com> | 2019-07-18 14:57:01 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-18 16:08:06 -0800 |
| commit | 05f800a0bd08e14606ac63e0a5c63ed6880acaab (patch) | |
| tree | f9acb2e3b72340518a9168bb3db8d1761ce117a4 /mm | |
| parent | db051a0dac13db24d58470d75cee0ce7c6b031a1 (diff) | |
| download | linux-stable-05f800a0bd08e14606ac63e0a5c63ed6880acaab.tar.gz linux-stable-05f800a0bd08e14606ac63e0a5c63ed6880acaab.tar.bz2 linux-stable-05f800a0bd08e14606ac63e0a5c63ed6880acaab.tar.xz linux-stable-05f800a0bd08e14606ac63e0a5c63ed6880acaab.zip | |
mm/memory_hotplug: drop MHP_MEMBLOCK_API
No longer needed, the callers of arch_add_memory() can handle this
manually.
Link: http://lkml.kernel.org/r/20190527111152.16324-9-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Wei Yang <richardw.yang@linux.intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Oscar Salvador <osalvador@suse.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Qian Cai <cai@lca.pw>
Cc: Arun KS <arunks@codeaurora.org>
Cc: Mathieu Malaterre <malat@debian.org>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Andrew Banman <andrew.banman@hpe.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chintan Pandya <cpandya@codeaurora.org>
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jun Yao <yaojun8558363@gmail.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Logan Gunthorpe <logang@deltatee.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Cc: "mike.travis@hpe.com" <mike.travis@hpe.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Rich Felker <dalias@libc.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/memory_hotplug.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 78291526eb4d..fb9dc3fa1138 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
| @@ -251,7 +251,7 @@ void __init register_page_bootmem_info_node(struct pglist_data *pgdat) | |||
| 251 | #endif /* CONFIG_HAVE_BOOTMEM_INFO_NODE */ | 251 | #endif /* CONFIG_HAVE_BOOTMEM_INFO_NODE */ |
| 252 | 252 | ||
| 253 | static int __meminit __add_section(int nid, unsigned long phys_start_pfn, | 253 | static int __meminit __add_section(int nid, unsigned long phys_start_pfn, |
| 254 | struct vmem_altmap *altmap, bool want_memblock) | 254 | struct vmem_altmap *altmap) |
| 255 | { | 255 | { |
| 256 | int ret; | 256 | int ret; |
| 257 | 257 | ||
| @@ -294,8 +294,7 @@ int __ref __add_pages(int nid, unsigned long phys_start_pfn, | |||
| 294 | } | 294 | } |
| 295 | 295 | ||
| 296 | for (i = start_sec; i <= end_sec; i++) { | 296 | for (i = start_sec; i <= end_sec; i++) { |
| 297 | err = __add_section(nid, section_nr_to_pfn(i), altmap, | 297 | err = __add_section(nid, section_nr_to_pfn(i), altmap); |
| 298 | restrictions->flags & MHP_MEMBLOCK_API); | ||
| 299 | 298 | ||
| 300 | /* | 299 | /* |
| 301 | * EEXIST is finally dealt with by ioresource collision | 300 | * EEXIST is finally dealt with by ioresource collision |
| @@ -1065,9 +1064,7 @@ static int online_memory_block(struct memory_block *mem, void *arg) | |||
| 1065 | */ | 1064 | */ |
| 1066 | int __ref add_memory_resource(int nid, struct resource *res) | 1065 | int __ref add_memory_resource(int nid, struct resource *res) |
| 1067 | { | 1066 | { |
| 1068 | struct mhp_restrictions restrictions = { | 1067 | struct mhp_restrictions restrictions = {}; |
| 1069 | .flags = MHP_MEMBLOCK_API, | ||
| 1070 | }; | ||
| 1071 | u64 start, size; | 1068 | u64 start, size; |
| 1072 | bool new_node = false; | 1069 | bool new_node = false; |
| 1073 | int ret; | 1070 | int ret; |
