Files
linux/include/linux
David Hildenbrand 4abb1e5b63 powerpc/mm: factor out creating/removing linear mapping
We want to stop abusing memory hotplug infrastructure in memtrace code
to perform allocations and remove the linear mapping. Instead we will use
alloc_contig_pages() and remove the linear mapping manually.

Let's factor out creating/removing the linear mapping into
arch_create_linear_mapping() / arch_remove_linear_mapping() - so in the
future, we might be able to have whole arch_add_memory() /
arch_remove_memory() be implemented in common code.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201111145322.15793-4-david@redhat.com
2020-11-19 16:56:58 +11:00
..
…
…
2020-10-12 10:06:39 +02:00
…
…
…
…
…
…
…
…
…
…
2020-10-28 13:18:56 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-10-02 14:59:25 -07:00
…
…
…
2020-09-21 15:00:40 -07:00
2020-10-02 15:00:49 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-10-16 17:21:51 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-07-27 14:29:23 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-12 20:42:08 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-30 22:44:26 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-04 21:02:38 -04:00
…
…
…
…
…
…
…
…
…
2020-09-16 08:54:53 -05:00
…
…
…
2020-08-26 12:41:56 +02:00
…
…
…
2020-10-28 13:42:36 -04:00
2020-10-13 18:38:32 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-04 09:25:20 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-23 18:02:49 -07:00
…
…
…
…
…
…
2020-10-18 09:27:09 -07:00
2020-09-04 12:46:07 +01:00
…
…
2020-08-27 16:06:47 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-10-07 14:28:39 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-24 19:49:36 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-31 12:52:33 -07:00
…
…
…
…
2020-09-23 18:02:49 -07:00
2020-10-18 09:27:10 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-18 17:06:15 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-07 11:33:24 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-26 22:55:05 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-10 14:03:31 -07:00
…
…
…
…
…
…
…
…
2020-08-01 11:28:17 +02:00
…
…
…
2020-10-18 09:27:10 -07:00
…
…
…
…
…
…
2020-10-05 13:21:49 +02:00
…
…
…
…
…
…
…
…
…
…