diff options
author | David Rientjes <rientjes@google.com> | 2018-03-27 02:27:21 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-03-27 02:45:02 -0400 |
commit | fc5d1073cae299de4517755a910df4f12a6a438f (patch) | |
tree | c77dbe955c420c2f02f7e9ba2ee8e95f08b521ca /mm/sparse.c | |
parent | 0bc91d4ba77156ae9217d25ed7c434540f950d05 (diff) |
x86/mm/32: Remove unused node_memmap_size_bytes() & CONFIG_NEED_NODE_MEMMAP_SIZE logic
node_memmap_size_bytes() has been unused since the v3.9 kernel, so remove it.
Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Laura Abbott <labbott@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Fixes: f03574f2d5b2 ("x86-32, mm: Rip out x86_32 NUMA remapping code")
Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1803262325540.256524@chino.kir.corp.google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm/sparse.c')
-rw-r--r-- | mm/sparse.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index 7af5e7a92528..79b26f98d793 100644 --- a/mm/sparse.c +++ b/mm/sparse.c | |||
@@ -236,28 +236,6 @@ void __init memory_present(int nid, unsigned long start, unsigned long end) | |||
236 | } | 236 | } |
237 | 237 | ||
238 | /* | 238 | /* |
239 | * Only used by the i386 NUMA architecures, but relatively | ||
240 | * generic code. | ||
241 | */ | ||
242 | unsigned long __init node_memmap_size_bytes(int nid, unsigned long start_pfn, | ||
243 | unsigned long end_pfn) | ||
244 | { | ||
245 | unsigned long pfn; | ||
246 | unsigned long nr_pages = 0; | ||
247 | |||
248 | mminit_validate_memmodel_limits(&start_pfn, &end_pfn); | ||
249 | for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { | ||
250 | if (nid != early_pfn_to_nid(pfn)) | ||
251 | continue; | ||
252 | |||
253 | if (pfn_present(pfn)) | ||
254 | nr_pages += PAGES_PER_SECTION; | ||
255 | } | ||
256 | |||
257 | return nr_pages * sizeof(struct page); | ||
258 | } | ||
259 | |||
260 | /* | ||
261 | * Subtle, we encode the real pfn into the mem_map such that | 239 | * Subtle, we encode the real pfn into the mem_map such that |
262 | * the identity pfn - section_mem_map will return the actual | 240 | * the identity pfn - section_mem_map will return the actual |
263 | * physical page frame number. | 241 | * physical page frame number. |