From fbe9c9612930e0604dc99ef2da7e063fa3278817 Mon Sep 17 00:00:00 2001 From: Roman Zippel Date: Thu, 31 May 2007 00:40:50 -0700 Subject: m68k: runtime patching infrastructure Add the basic infrastructure to allow runtime patching of kernel and modules to optimize a few functions with parameters, which are only calculated once during bootup and are otherwise constant. Use this for the conversion between virtual and physical addresses. Signed-off-by: Roman Zippel Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/m68k/mm/motorola.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/m68k/mm') diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c index afcccdc6ad45..98ef00547b37 100644 --- a/arch/m68k/mm/motorola.c +++ b/arch/m68k/mm/motorola.c @@ -222,6 +222,9 @@ void __init paging_init(void) pgprot_val(protection_map[i]) |= _PAGE_CACHE040; } + module_fixup(NULL, __start_fixup, __stop_fixup); + flush_icache(); + /* * Map the physical memory available into the kernel virtual * address space. It may allocate some memory for page -- cgit v1.2.3-59-g8ed1b