]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/blackfin/include/asm/smp.h
Blackfin: SMP: add PM/CPU hotplug support
[net-next-2.6.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
dbc895f9
GY
20extern char coreb_trampoline_start, coreb_trampoline_end;
21
6b3087c6
GY
22struct corelock_slot {
23 int lock;
24};
25
26void smp_icache_flush_range_others(unsigned long start,
27 unsigned long end);
0b39db28
GY
28#ifdef CONFIG_HOTPLUG_CPU
29void coreb_sleep(u32 sic_iwr0, u32 sic_iwr1, u32 sic_iwr2);
30void cpu_die(void);
31void platform_cpu_die(void);
32int __cpu_disable(void);
33int __cpu_die(unsigned int cpu);
34#endif
6b3087c6
GY
35
36#endif /* !__ASM_BLACKFIN_SMP_H */