smp.h 634 B

1234567891011121314151617181920212223242526272829
  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. void smp_icache_flush_range_others(unsigned long start,
  21. unsigned long end);
  22. #endif /* !__ASM_BLACKFIN_SMP_H */