]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sparc32: Call sun4m_clear_profile_irq() directly from sun4m_smp.c
authorDavid S. Miller <davem@davemloft.net>
Sun, 14 Sep 2008 05:07:56 +0000 (22:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Sep 2008 04:17:58 +0000 (21:17 -0700)
This is the only use of the clear_profile_irq() btfixup entry,
which just eats up lots of dead space on other platform types.

A subsequent commit will delete the other implementations and
the btfixup entry as well.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sun4m_irq.c
arch/sparc/kernel/sun4m_smp.c

index 39d40e96d3961a47c068b77c7703f0e9618bd27b..8e1ecc6def2695b4b3a85bfb460d972deed4e85c 100644 (file)
@@ -264,7 +264,8 @@ static void sun4m_clear_clock_irq(void)
        sbus_readl(&timers_global->l10_limit);
 }
 
-static void sun4m_clear_profile_irq(int cpu)
+/* Exported for sun4m_smp.c */
+void sun4m_clear_profile_irq(int cpu)
 {
        sbus_readl(&timers_percpu[cpu]->l14_limit);
 }
index a14a76ac7f36464642ea95f397326c29d3967002..e3c0be17729f02f9d6d0b4818bba5eb157edf546 100644 (file)
@@ -313,6 +313,8 @@ void smp4m_cross_call_irq(void)
        ccall_info.processors_out[i] = 1;
 }
 
+extern void sun4m_clear_profile_irq(int cpu);
+
 void smp4m_percpu_timer_interrupt(struct pt_regs *regs)
 {
        struct pt_regs *old_regs;
@@ -320,7 +322,7 @@ void smp4m_percpu_timer_interrupt(struct pt_regs *regs)
 
        old_regs = set_irq_regs(regs);
 
-       clear_profile_irq(cpu);
+       sun4m_clear_profile_irq(cpu);
 
        profile_tick(CPU_PROFILING);