aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-14 19:49:17 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-14 19:49:17 -0400
commit1dcf58d6e6e6eb7ec10e9abc56887b040205b06f (patch)
treec03e7a25ef13eea62f1547914a76e5c68f3f4c28 /arch/sh
parent80dcc31fbe55932ac9204daee5f2ebc0c49b6da3 (diff)
parente4b0db72be2487bae0e3251c22f82c104f7c1cfd (diff)
Merge branch 'akpm' (patches from Andrew)
Merge first patchbomb from Andrew Morton: - arch/sh updates - ocfs2 updates - kernel/watchdog feature - about half of mm/ * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (122 commits) Documentation: update arch list in the 'memtest' entry Kconfig: memtest: update number of test patterns up to 17 arm: add support for memtest arm64: add support for memtest memtest: use phys_addr_t for physical addresses mm: move memtest under mm mm, hugetlb: abort __get_user_pages if current has been oom killed mm, mempool: do not allow atomic resizing memcg: print cgroup information when system panics due to panic_on_oom mm: numa: remove migrate_ratelimited mm: fold arch_randomize_brk into ARCH_HAS_ELF_RANDOMIZE mm: split ET_DYN ASLR from mmap ASLR s390: redefine randomize_et_dyn for ELF_ET_DYN_BASE mm: expose arch_mmap_rnd when available s390: standardize mmap_rnd() usage powerpc: standardize mmap_rnd() usage mips: extract logic for mmap_rnd() arm64: standardize mmap_rnd() usage x86: standardize mmap_rnd() usage arm: factor out mmap ASLR into mmap_rnd ...
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/Kconfig4
-rw-r--r--arch/sh/kernel/dwarf.c18
2 files changed, 13 insertions, 9 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index eb4ef274ae9b..50057fed819d 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -162,6 +162,10 @@ config NEED_DMA_MAP_STATE
162config NEED_SG_DMA_LENGTH 162config NEED_SG_DMA_LENGTH
163 def_bool y 163 def_bool y
164 164
165config PGTABLE_LEVELS
166 default 3 if X2TLB
167 default 2
168
165source "init/Kconfig" 169source "init/Kconfig"
166 170
167source "kernel/Kconfig.freezer" 171source "kernel/Kconfig.freezer"
diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c
index 67a049e75ec1..9d209a07235e 100644
--- a/arch/sh/kernel/dwarf.c
+++ b/arch/sh/kernel/dwarf.c
@@ -993,7 +993,7 @@ static struct unwinder dwarf_unwinder = {
993 .rating = 150, 993 .rating = 150,
994}; 994};
995 995
996static void dwarf_unwinder_cleanup(void) 996static void __init dwarf_unwinder_cleanup(void)
997{ 997{
998 struct dwarf_fde *fde, *next_fde; 998 struct dwarf_fde *fde, *next_fde;
999 struct dwarf_cie *cie, *next_cie; 999 struct dwarf_cie *cie, *next_cie;
@@ -1009,6 +1009,10 @@ static void dwarf_unwinder_cleanup(void)
1009 rbtree_postorder_for_each_entry_safe(cie, next_cie, &cie_root, node) 1009 rbtree_postorder_for_each_entry_safe(cie, next_cie, &cie_root, node)
1010 kfree(cie); 1010 kfree(cie);
1011 1011
1012 if (dwarf_reg_pool)
1013 mempool_destroy(dwarf_reg_pool);
1014 if (dwarf_frame_pool)
1015 mempool_destroy(dwarf_frame_pool);
1012 kmem_cache_destroy(dwarf_reg_cachep); 1016 kmem_cache_destroy(dwarf_reg_cachep);
1013 kmem_cache_destroy(dwarf_frame_cachep); 1017 kmem_cache_destroy(dwarf_frame_cachep);
1014} 1018}
@@ -1176,17 +1180,13 @@ static int __init dwarf_unwinder_init(void)
1176 sizeof(struct dwarf_reg), 0, 1180 sizeof(struct dwarf_reg), 0,
1177 SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL); 1181 SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL);
1178 1182
1179 dwarf_frame_pool = mempool_create(DWARF_FRAME_MIN_REQ, 1183 dwarf_frame_pool = mempool_create_slab_pool(DWARF_FRAME_MIN_REQ,
1180 mempool_alloc_slab, 1184 dwarf_frame_cachep);
1181 mempool_free_slab,
1182 dwarf_frame_cachep);
1183 if (!dwarf_frame_pool) 1185 if (!dwarf_frame_pool)
1184 goto out; 1186 goto out;
1185 1187
1186 dwarf_reg_pool = mempool_create(DWARF_REG_MIN_REQ, 1188 dwarf_reg_pool = mempool_create_slab_pool(DWARF_REG_MIN_REQ,
1187 mempool_alloc_slab, 1189 dwarf_reg_cachep);
1188 mempool_free_slab,
1189 dwarf_reg_cachep);
1190 if (!dwarf_reg_pool) 1190 if (!dwarf_reg_pool)
1191 goto out; 1191 goto out;
1192 1192