diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-08 10:05:57 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-08 10:05:57 -0700 |
commit | 4fd6c6bf83cb16321e9902b00e2af79054f4e0d6 (patch) | |
tree | 7153f611af0125336ac0ec22c5cb430fe520edcc /arch/arm/mach-tegra/include/mach/smp.h | |
parent | c5f347579a661c9506e794315f0798b75ef71d35 (diff) | |
parent | 84b9414babdc303dde1d3f44cd2a54dffb67ab97 (diff) |
Merge branch 'for-linus' of git://android.kernel.org/kernel/tegra
* 'for-linus' of git://android.kernel.org/kernel/tegra:
[ARM] tegra: add MAINTAINERS entry
[ARM] tegra: harmony: Add harmony board file
[ARM] tegra: add pinmux support
[ARM] tegra: add GPIO support
[ARM] tegra: Add timer support
[ARM] tegra: SMP support
[ARM] tegra: Add clock support
[ARM] tegra: Add IRQ support
[ARM] tegra: initial tegra support
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/smp.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/smp.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/smp.h b/arch/arm/mach-tegra/include/mach/smp.h new file mode 100644 index 00000000000..8b42dab79a7 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/smp.h @@ -0,0 +1,30 @@ +#ifndef ASMARM_ARCH_SMP_H +#define ASMARM_ARCH_SMP_H + + +#include <asm/hardware/gic.h> + +#define hard_smp_processor_id() \ + ({ \ + unsigned int cpunum; \ + __asm__("mrc p15, 0, %0, c0, c0, 5" \ + : "=r" (cpunum)); \ + cpunum &= 0x0F; \ + }) + +/* + * We use IRQ1 as the IPI + */ +static inline void smp_cross_call(const struct cpumask *mask) +{ + gic_raise_softirq(mask, 1); +} + +/* + * Do nothing on MPcore. + */ +static inline void smp_cross_call_done(cpumask_t callmap) +{ +} + +#endif |