smp.h 872 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright 2007-2009 Analog Devices Inc.
  3. * Philippe Gerum <rpm@xenomai.org>
  4. *
  5. * Licensed under the GPL-2 or later.
  6. */
  7. #ifndef __ASM_BLACKFIN_SMP_H
  8. #define __ASM_BLACKFIN_SMP_H
  9. #include <linux/kernel.h>
  10. #include <linux/threads.h>
  11. #include <linux/cpumask.h>
  12. #include <linux/cache.h>
  13. #include <asm/blackfin.h>
  14. #include <mach/smp.h>
  15. #define raw_smp_processor_id() blackfin_core_id()
  16. extern char coreb_trampoline_start, coreb_trampoline_end;
  17. struct corelock_slot {
  18. int lock;
  19. };
  20. extern struct corelock_slot corelock;
  21. void smp_icache_flush_range_others(unsigned long start,
  22. unsigned long end);
  23. #ifdef CONFIG_HOTPLUG_CPU
  24. void coreb_sleep(u32 sic_iwr0, u32 sic_iwr1, u32 sic_iwr2);
  25. void cpu_die(void);
  26. void platform_cpu_die(void);
  27. int __cpu_disable(void);
  28. int __cpu_die(unsigned int cpu);
  29. #endif
  30. #endif /* !__ASM_BLACKFIN_SMP_H */