Oscar Salvador 4a3e5de9c4 acpi,memhotplug: enable MHP_MEMMAP_ON_MEMORY when supported
Let the caller check whether it can pass MHP_MEMMAP_ON_MEMORY by
checking mhp_supports_memmap_on_memory().  MHP_MEMMAP_ON_MEMORY can only
be set in case ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE is enabled, the
architecture supports altmap, and the range to be added spans a single
memory block.

Link: https://lkml.kernel.org/r/20210421102701.25051-6-osalvador@suse.de
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-05-05 11:27:27 -07:00
..
2021-04-26 17:04:41 +02:00
2020-11-10 18:52:51 +01:00
2021-04-27 10:16:46 -07:00
2021-04-27 10:16:46 -07:00
2021-03-19 17:45:49 +01:00
2021-04-08 16:17:32 +02:00
2019-06-23 09:23:33 +02:00
2021-04-26 17:04:41 +02:00
2021-04-26 17:04:41 +02:00
2021-01-22 16:17:19 +01:00
2021-02-20 21:50:59 -08:00
2021-04-26 17:04:41 +02:00
2021-04-26 17:04:41 +02:00
2020-11-09 19:08:06 +01:00
2020-11-09 19:25:20 +01:00
2021-02-25 18:57:40 +01:00
2021-02-25 18:57:40 +01:00
2019-11-13 11:12:08 +01:00
2021-02-10 19:09:43 +01:00
2021-04-26 17:04:41 +02:00
2021-04-26 17:04:41 +02:00
2021-03-19 17:45:49 +01:00
2020-11-09 19:08:06 +01:00
2020-11-09 19:08:06 +01:00
2021-04-26 17:04:41 +02:00
2020-07-09 14:09:28 +02:00
2020-11-09 19:08:06 +01:00