smp.h 967 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2001 - 2013 Tensilica Inc.
  7. */
  8. #ifndef _XTENSA_SMP_H
  9. #define _XTENSA_SMP_H
  10. #ifdef CONFIG_SMP
  11. #define raw_smp_processor_id() (current_thread_info()->cpu)
  12. #define cpu_logical_map(cpu) (cpu)
  13. struct start_info {
  14. unsigned long stack;
  15. };
  16. extern struct start_info start_info;
  17. struct cpumask;
  18. void arch_send_call_function_ipi_mask(const struct cpumask *mask);
  19. void arch_send_call_function_single_ipi(int cpu);
  20. void smp_init_cpus(void);
  21. void secondary_init_irq(void);
  22. void ipi_init(void);
  23. struct seq_file;
  24. void show_ipi_list(struct seq_file *p, int prec);
  25. #ifdef CONFIG_HOTPLUG_CPU
  26. void __cpu_die(unsigned int cpu);
  27. int __cpu_disable(void);
  28. void cpu_die(void);
  29. void cpu_restart(void);
  30. #endif /* CONFIG_HOTPLUG_CPU */
  31. #endif /* CONFIG_SMP */
  32. #endif /* _XTENSA_SMP_H */