linux-mips
[Top] [All Lists]

[PATCH 2/5] MIPS: Make set_handler() __cpuinit.

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH 2/5] MIPS: Make set_handler() __cpuinit.
From: David Daney <ddaney.cavm@gmail.com>
Date: Mon, 19 Dec 2011 15:16:39 -0800
Cc: David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=AG6v+/bMhNzRCvyg5yrr8Q8pCDyi1zXuAAfIvONETMw=; b=Leoxg5Q1ggjs2QSyG3ro9eYzKLbprB0QYm2N4RGQBdZlbFN7oScYNe7zJ+Lx4nhGpm ofFozfNvnRJ2Icwqn9OUxJgOASCXjKIqlk6Z1IeYUBUjY7e/nZlbuaa+7U93sD3dZlI4 dr2p+o157Sn1AItRriODIxAaeWtFUtXY0bZ5Q=
In-reply-to: <1324336602-29812-1-git-send-email-ddaney.cavm@gmail.com>
References: <1324336602-29812-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

Follow-on patched require this.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 arch/mips/kernel/traps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index f305c04..0430700 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1623,7 +1623,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);
-- 
1.7.2.3


<Prev in Thread] Current Thread [Next in Thread>