Merge tag 'omap-devel-board-late-v3-for-v3.7' of git://git.kernel.org/pub/scm/linux...
[deliverable/linux.git] / arch / blackfin / include / asm / smp.h
CommitLineData
6b3087c6 1/*
96f1050d
RG
2 * Copyright 2007-2009 Analog Devices Inc.
3 * Philippe Gerum <rpm@xenomai.org>
6b3087c6 4 *
96f1050d 5 * Licensed under the GPL-2 or later.
6b3087c6
GY
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
c6345ab1 20extern void bfin_relocate_coreb_l1_mem(void);
50888469
SM
21extern void arch_send_call_function_single_ipi(int cpu);
22extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
c6345ab1
SZ
23
24#if defined(CONFIG_SMP) && defined(CONFIG_ICACHE_FLUSH_L1)
25asmlinkage void blackfin_icache_flush_range_l1(unsigned long *ptr);
26extern unsigned long blackfin_iflush_l1_entry[NR_CPUS];
27#endif
dbc895f9 28
6b3087c6
GY
29struct corelock_slot {
30 int lock;
31};
60ffdb36 32extern struct corelock_slot corelock;
6b3087c6 33
718340f6
GY
34#ifdef __ARCH_SYNC_CORE_ICACHE
35extern unsigned long icache_invld_count[NR_CPUS];
36#endif
37#ifdef __ARCH_SYNC_CORE_DCACHE
38extern unsigned long dcache_invld_count[NR_CPUS];
39#endif
40
6b3087c6 41void smp_icache_flush_range_others(unsigned long start,
d0014be4 42 unsigned long end);
0b39db28 43#ifdef CONFIG_HOTPLUG_CPU
6f546bc3 44void coreb_die(void);
0b39db28
GY
45void cpu_die(void);
46void platform_cpu_die(void);
47int __cpu_disable(void);
48int __cpu_die(unsigned int cpu);
49#endif
6b3087c6 50
d0014be4
BL
51void smp_timer_broadcast(const struct cpumask *mask);
52
53
6b3087c6 54#endif /* !__ASM_BLACKFIN_SMP_H */
This page took 0.224646 seconds and 5 git commands to generate.