smp.h 626 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_CSKY_SMP_H
  3. #define __ASM_CSKY_SMP_H
  4. #include <linux/cpumask.h>
  5. #include <linux/irqreturn.h>
  6. #include <linux/threads.h>
  7. #ifdef CONFIG_SMP
  8. void __init setup_smp(void);
  9. void __init setup_smp_ipi(void);
  10. void arch_send_call_function_ipi_mask(struct cpumask *mask);
  11. void arch_send_call_function_single_ipi(int cpu);
  12. void __init set_send_ipi(void (*func)(const struct cpumask *mask), int irq);
  13. #define raw_smp_processor_id() (current_thread_info()->cpu)
  14. int __cpu_disable(void);
  15. void __cpu_die(unsigned int cpu);
  16. #endif /* CONFIG_SMP */
  17. #endif /* __ASM_CSKY_SMP_H */