Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 1 | /* |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame^] | 2 | * Copyright 2007-2009 Analog Devices Inc. |
| 3 | * Philippe Gerum <rpm@xenomai.org> |
Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 4 | * |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame^] | 5 | * Licensed under the GPL-2 or later. |
Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __ASM_BLACKFIN_SMP_H |
| 9 | #define __ASM_BLACKFIN_SMP_H |
| 10 | |
| 11 | #include <linux/kernel.h> |
| 12 | #include <linux/threads.h> |
| 13 | #include <linux/cpumask.h> |
| 14 | #include <linux/cache.h> |
| 15 | #include <asm/blackfin.h> |
| 16 | #include <mach/smp.h> |
| 17 | |
| 18 | #define raw_smp_processor_id() blackfin_core_id() |
| 19 | |
Graf Yang | dbc895f | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 20 | extern char coreb_trampoline_start, coreb_trampoline_end; |
| 21 | |
Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 22 | struct corelock_slot { |
| 23 | int lock; |
| 24 | }; |
| 25 | |
| 26 | void smp_icache_flush_range_others(unsigned long start, |
| 27 | unsigned long end); |
| 28 | |
| 29 | #endif /* !__ASM_BLACKFIN_SMP_H */ |