summaryrefslogtreecommitdiffstats
path: root/arch/tile/mm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-07-15 00:50:50 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-15 00:50:50 -0400
commit01ea9177351883f65e696e545820605474adb307 (patch)
tree11d622e2b58cf7b42f7bfe8c3f24a2e7bb0c9b25 /arch/tile/mm
parentdeed9deb62f9121ea16f06351d1e968685a74863 (diff)
parent0af0bc38175d9859753a08f07af3aa767601265b (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
Pull arch/tile updates from Chris Metcalf: "This adds support for an <arch/intreg.h> to help with removing __need_xxx #defines from glibc, and removes some dead code in arch/tile/mm/init.c" * git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile: mm, tile: drop arch_{add,remove}_memory tile: prefer <arch/intreg.h> to __need_int_reg_t
Diffstat (limited to 'arch/tile/mm')
-rw-r--r--arch/tile/mm/init.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c
index 3a97e4d7205c..5f757e04bcd2 100644
--- a/arch/tile/mm/init.c
+++ b/arch/tile/mm/init.c
@@ -857,36 +857,6 @@ void __init mem_init(void)
857#endif 857#endif
858} 858}
859 859
860/*
861 * this is for the non-NUMA, single node SMP system case.
862 * Specifically, in the case of x86, we will always add
863 * memory to the highmem for now.
864 */
865#ifndef CONFIG_NEED_MULTIPLE_NODES
866int arch_add_memory(u64 start, u64 size, bool for_device)
867{
868 struct pglist_data *pgdata = &contig_page_data;
869 struct zone *zone = pgdata->node_zones + MAX_NR_ZONES-1;
870 unsigned long start_pfn = start >> PAGE_SHIFT;
871 unsigned long nr_pages = size >> PAGE_SHIFT;
872
873 return __add_pages(zone, start_pfn, nr_pages);
874}
875
876int remove_memory(u64 start, u64 size)
877{
878 return -EINVAL;
879}
880
881#ifdef CONFIG_MEMORY_HOTREMOVE
882int arch_remove_memory(u64 start, u64 size)
883{
884 /* TODO */
885 return -EBUSY;
886}
887#endif
888#endif
889
890struct kmem_cache *pgd_cache; 860struct kmem_cache *pgd_cache;
891 861
892void __init pgtable_cache_init(void) 862void __init pgtable_cache_init(void)