linux-mips
[Top] [All Lists]

[PATCH] MIPS: Use __cpuinit for mips_probe_watch_registers.

To: linux-mips@linux-mips.org
Subject: [PATCH] MIPS: Use __cpuinit for mips_probe_watch_registers.
From: David Daney <ddaney@caviumnetworks.com>
Date: Fri, 10 Oct 2008 09:59:20 -0700
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.16 (X11/20080723)
Use __cpuinit for mips_probe_watch_registers.

This function is called whenever a cpu is added, it cannot be __init.

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

diff --git a/arch/mips/kernel/watch.c b/arch/mips/kernel/watch.c
index e9c4f5d..c154069 100644
--- a/arch/mips/kernel/watch.c
+++ b/arch/mips/kernel/watch.c
@@ -100,7 +100,7 @@ void mips_clear_watch_registers(void)
        }
}

-__init void mips_probe_watch_registers(struct cpuinfo_mips *c)
+__cpuinit void mips_probe_watch_registers(struct cpuinfo_mips *c)
{
        unsigned int t;


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