summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2012-05-15 00:04:47 -0700
committerRalf Baechle <ralf@linux-mips.org>2012-05-16 23:34:33 +0200
commite3dc81f2306e650f01e38ec87e24c3fecb843dc3 (patch)
tree71300e567e0c1f6c8fe4499d56dc9a4465b7cb44 /arch/mips/kernel
parentfcbf1dfde3da728144222930ae592acb06e92c7c (diff)
downloadlinux-e3dc81f2306e650f01e38ec87e24c3fecb843dc3.tar.bz2
MIPS: Make set_handler() __cpuinit.
Follow-on patches require this. Signed-off-by: David Daney <david.daney@cavium.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3818/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index ed46c2b6354c..24325780f831 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1632,7 +1632,7 @@ void __cpuinit per_cpu_trap_init(void)
}
/* Install CPU exception handler */
-void __init set_handler(unsigned long offset, void *addr, unsigned long size)
+void __cpuinit set_handler(unsigned long offset, void *addr, unsigned long size)
{
memcpy((void *)(ebase + offset), addr, size);
local_flush_icache_range(ebase + offset, ebase + offset + size);