sparc32: refactor smp boot
Introduce a common smp_callin() function to call from trampoline_32.S. Add platform specific functions to handle the platform details. This is in preparation for a patch that will unify the smp boot stuff for all architectures. sparc32 was significantly different to warrant this patch in preparation. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: David S. Miller <davem@davemloft.net> Cc: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com> Acked-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
76968ad2ea
commit
f9fd3488f6
@@ -48,6 +48,10 @@ extern void sun4m_init_IRQ(void);
|
||||
extern void sun4m_unmask_profile_irq(void);
|
||||
extern void sun4m_clear_profile_irq(int cpu);
|
||||
|
||||
/* sun4m_smp.c */
|
||||
void sun4m_cpu_pre_starting(void *arg);
|
||||
void sun4m_cpu_pre_online(void *arg);
|
||||
|
||||
/* sun4d_irq.c */
|
||||
extern spinlock_t sun4d_imsk_lock;
|
||||
|
||||
@@ -60,6 +64,14 @@ extern int show_sun4d_interrupts(struct seq_file *, void *);
|
||||
extern void sun4d_distribute_irqs(void);
|
||||
extern void sun4d_free_irq(unsigned int irq, void *dev_id);
|
||||
|
||||
/* sun4d_smp.c */
|
||||
void sun4d_cpu_pre_starting(void *arg);
|
||||
void sun4d_cpu_pre_online(void *arg);
|
||||
|
||||
/* leon_smp.c */
|
||||
void leon_cpu_pre_starting(void *arg);
|
||||
void leon_cpu_pre_online(void *arg);
|
||||
|
||||
/* head_32.S */
|
||||
extern unsigned int t_nmi[];
|
||||
extern unsigned int linux_trap_ipi15_sun4d[];
|
||||
|
Reference in New Issue
Block a user