2 * Copyright 2007-2009 Analog Devices Inc.
3 * Philippe Gerum <rpm@xenomai.org>
5 * Licensed under the GPL-2 or later.
8 #ifndef __ASM_BLACKFIN_SMP_H
9 #define __ASM_BLACKFIN_SMP_H
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>
18 #define raw_smp_processor_id() blackfin_core_id()
20 extern char coreb_trampoline_start
, coreb_trampoline_end
;
22 struct corelock_slot
{
25 extern struct corelock_slot corelock
;
27 #ifdef __ARCH_SYNC_CORE_ICACHE
28 extern unsigned long icache_invld_count
[NR_CPUS
];
30 #ifdef __ARCH_SYNC_CORE_DCACHE
31 extern unsigned long dcache_invld_count
[NR_CPUS
];
34 void smp_icache_flush_range_others(unsigned long start
,
36 #ifdef CONFIG_HOTPLUG_CPU
39 void platform_cpu_die(void);
40 int __cpu_disable(void);
41 int __cpu_die(unsigned int cpu
);
44 #endif /* !__ASM_BLACKFIN_SMP_H */