Skip to contentSkip to conversation

: sparc32: Call sun4m_clear_profile_irq() directly

PATCH New David Miller 1 participant 1 message Sep 19, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 5/13 : sparc32: Call sun4m_clear_profile_irq() directly

sparc32: Call sun4m_clear_profile_irq() directly from sun4m_smp.c

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.

---
 arch/sparc/kernel/sun4m_irq.c |    3 ++-
 arch/sparc/kernel/sun4m_smp.c |    4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)
arch/sparc/kernel/sun4m_irq.c +2 -1
index 39d40e9..8e1ecc6 100644
@@ -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);
 }
arch/sparc/kernel/sun4m_smp.c +3 -1
index a14a76a..e3c0be1 100644
@@ -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);
 
Signature · 1 line
1.5.6.5