summaryrefslogtreecommitdiff
path: root/arch/m68k/include/asm/mmu_context.h
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2017-09-05 15:48:42 +0300
committerGreg Ungerer <gerg@linux-m68k.org>2017-11-06 01:25:20 +0300
commit34fa9b2177a2abec05ae5976eaadbcce648a0982 (patch)
tree5c953b8b6dc29444933bc4c33f92eb23a6d19439 /arch/m68k/include/asm/mmu_context.h
parent39dae59d66acd86d1de24294bd2f343fd5e7a625 (diff)
downloadlinux-34fa9b2177a2abec05ae5976eaadbcce648a0982.tar.xz
m68k: move coldfire MMU initialization code
The M54[78]x ColdFire parts are not the only members of the ColdFire family that have an MMU. But currently some of the early MMU initialization code is inside the startup code specific to only the ColdFire M54[78]x parts. Move that early ColdFire MMU init code so that it is run for other ColdFire parts running with MMU enabled. Specifically this means that the MMU initialization code will now also be run for the ColdFire M5441x parts when running with MMU enabled. The code move meant that the extern definition for the mmu_context_init() function had to be moved as well. To make it clear that is ColdFire specific I have renamed that with a "cf_" in front of it and put its extern definition in the mcfmmu.h (which is already included by the setup code). Reported-by: Angelo Dureghello <angelo@sysam.it> Tested-by: Angelo Dureghello <angelo@sysam.it> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include/asm/mmu_context.h')
-rw-r--r--arch/m68k/include/asm/mmu_context.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/mmu_context.h b/arch/m68k/include/asm/mmu_context.h
index 836acea8f758..f5b1852b4663 100644
--- a/arch/m68k/include/asm/mmu_context.h
+++ b/arch/m68k/include/asm/mmu_context.h
@@ -92,7 +92,6 @@ static inline void activate_mm(struct mm_struct *active_mm,
#define deactivate_mm(tsk, mm) do { } while (0)
-extern void mmu_context_init(void);
#define prepare_arch_switch(next) load_ksp_mmu(next)
static inline void load_ksp_mmu(struct task_struct *task)