提交 1de937a5 编写于 作者: D David S. Miller

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.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a73554ae
...@@ -264,7 +264,8 @@ static void sun4m_clear_clock_irq(void) ...@@ -264,7 +264,8 @@ static void sun4m_clear_clock_irq(void)
sbus_readl(&timers_global->l10_limit); 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); sbus_readl(&timers_percpu[cpu]->l14_limit);
} }
......
...@@ -313,6 +313,8 @@ void smp4m_cross_call_irq(void) ...@@ -313,6 +313,8 @@ void smp4m_cross_call_irq(void)
ccall_info.processors_out[i] = 1; ccall_info.processors_out[i] = 1;
} }
extern void sun4m_clear_profile_irq(int cpu);
void smp4m_percpu_timer_interrupt(struct pt_regs *regs) void smp4m_percpu_timer_interrupt(struct pt_regs *regs)
{ {
struct pt_regs *old_regs; struct pt_regs *old_regs;
...@@ -320,7 +322,7 @@ void smp4m_percpu_timer_interrupt(struct pt_regs *regs) ...@@ -320,7 +322,7 @@ void smp4m_percpu_timer_interrupt(struct pt_regs *regs)
old_regs = set_irq_regs(regs); old_regs = set_irq_regs(regs);
clear_profile_irq(cpu); sun4m_clear_profile_irq(cpu);
profile_tick(CPU_PROFILING); profile_tick(CPU_PROFILING);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册