xref: /openbmc/linux/arch/csky/include/asm/smp.h (revision 7202e979)
199106986SGuo Ren /* SPDX-License-Identifier: GPL-2.0 */
299106986SGuo Ren 
399106986SGuo Ren #ifndef __ASM_CSKY_SMP_H
499106986SGuo Ren #define __ASM_CSKY_SMP_H
599106986SGuo Ren 
699106986SGuo Ren #include <linux/cpumask.h>
799106986SGuo Ren #include <linux/irqreturn.h>
899106986SGuo Ren #include <linux/threads.h>
999106986SGuo Ren 
1099106986SGuo Ren #ifdef CONFIG_SMP
1199106986SGuo Ren 
1299106986SGuo Ren void __init setup_smp(void);
1399106986SGuo Ren 
1499106986SGuo Ren void __init setup_smp_ipi(void);
1599106986SGuo Ren 
1699106986SGuo Ren void arch_send_call_function_ipi_mask(struct cpumask *mask);
1799106986SGuo Ren 
1899106986SGuo Ren void arch_send_call_function_single_ipi(int cpu);
1999106986SGuo Ren 
2099106986SGuo Ren void __init set_send_ipi(void (*func)(const struct cpumask *mask), int irq);
2199106986SGuo Ren 
2299106986SGuo Ren #define raw_smp_processor_id()	(current_thread_info()->cpu)
2399106986SGuo Ren 
24859e5f45SGuo Ren int __cpu_disable(void);
25859e5f45SGuo Ren 
__cpu_die(unsigned int cpu)26*7202e979SThomas Gleixner static inline void __cpu_die(unsigned int cpu) { }
27859e5f45SGuo Ren 
2899106986SGuo Ren #endif /* CONFIG_SMP */
2999106986SGuo Ren 
3099106986SGuo Ren #endif /* __ASM_CSKY_SMP_H */
31