linux-mips
[Top] [All Lists]

[PATCH] Add __cpuinit for some cevt-r4k functions

To: linux-mips@linux-mips.org
Subject: [PATCH] Add __cpuinit for some cevt-r4k functions
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Mon, 29 Oct 2007 22:48:41 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
index a59f67f..e62bc87 100644
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -133,7 +133,7 @@ static void mips_broadcast(cpumask_t mask)
                smtc_send_ipi(cpu, SMTC_CLOCK_TICK, 0);
 }
 
-static void setup_smtc_dummy_clockevent_device(void)
+static void __cpuinit setup_smtc_dummy_clockevent_device(void)
 {
        //uint64_t mips_freq = mips_hpt_^frequency;
        unsigned int cpu = smp_processor_id();
@@ -172,12 +172,12 @@ static void mips_event_handler(struct clock_event_device 
*dev)
 /*
  * FIXME: This doesn't hold for the relocated E9000 compare interrupt.
  */
-static int c0_compare_int_pending(void)
+static int __cpuinit c0_compare_int_pending(void)
 {
        return (read_c0_cause() >> cp0_compare_irq) & 0x100;
 }
 
-static int c0_compare_int_usable(void)
+static int __cpuinit c0_compare_int_usable(void)
 {
        unsigned int delta;
        unsigned int cnt;

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