summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-03-09 23:11:26 +0100
committerArnd Bergmann <arnd@arndb.de>2018-03-16 10:56:10 +0100
commit1a8429132e1d2ada3832db5b4a0802c49affb750 (patch)
tree4653a5067340d1701596e1756651d59eca7b07b9 /kernel/module.c
parente05a959f4b9ae8d9693a8a7347d42d9e45edb3b6 (diff)
downloadlinux-1a8429132e1d2ada3832db5b4a0802c49affb750.tar.bz2
mm: remove blackfin MPU support
The CONFIG_MPU option was only defined on blackfin, and that architecture is now being removed, so the respective code can be simplified. A lot of other microcontrollers have an MPU, but I suspect that if we want to bring that support back, we'd do it differently anyway. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/module.c b/kernel/module.c
index ad2d420024f6..2c1df850029b 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2181,10 +2181,6 @@ static void free_module(struct module *mod)
/* Finally, free the core (containing the module structure) */
disable_ro_nx(&mod->core_layout);
module_memfree(mod->core_layout.base);
-
-#ifdef CONFIG_MPU
- update_protections(current->mm);
-#endif
}
void *__symbol_get(const char *symbol)