smp.h 822 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2014 Stefan Kristiansson <[email protected]>
  3. *
  4. * This file is licensed under the terms of the GNU General Public License
  5. * version 2. This program is licensed "as is" without any warranty of any
  6. * kind, whether express or implied.
  7. */
  8. #ifndef __ASM_OPENRISC_SMP_H
  9. #define __ASM_OPENRISC_SMP_H
  10. #include <asm/spr.h>
  11. #include <asm/spr_defs.h>
  12. #define raw_smp_processor_id() (current_thread_info()->cpu)
  13. #define hard_smp_processor_id() mfspr(SPR_COREID)
  14. extern void smp_init_cpus(void);
  15. extern void arch_send_call_function_single_ipi(int cpu);
  16. extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
  17. extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int));
  18. extern void handle_IPI(unsigned int ipi_msg);
  19. #endif /* __ASM_OPENRISC_SMP_H */