diff options
Diffstat (limited to 'arch/arm/plat-omap/include/plat/smp.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/smp.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/arm/plat-omap/include/plat/smp.h b/arch/arm/plat-omap/include/plat/smp.h index 5177a9c5a25..ecd6a488c49 100644 --- a/arch/arm/plat-omap/include/plat/smp.h +++ b/arch/arm/plat-omap/include/plat/smp.h | |||
@@ -18,6 +18,7 @@ | |||
18 | #define OMAP_ARCH_SMP_H | 18 | #define OMAP_ARCH_SMP_H |
19 | 19 | ||
20 | #include <asm/hardware/gic.h> | 20 | #include <asm/hardware/gic.h> |
21 | #include <asm/smp_mpidr.h> | ||
21 | 22 | ||
22 | /* Needed for secondary core boot */ | 23 | /* Needed for secondary core boot */ |
23 | extern void omap_secondary_startup(void); | 24 | extern void omap_secondary_startup(void); |
@@ -33,15 +34,4 @@ static inline void smp_cross_call(const struct cpumask *mask) | |||
33 | gic_raise_softirq(mask, 1); | 34 | gic_raise_softirq(mask, 1); |
34 | } | 35 | } |
35 | 36 | ||
36 | /* | ||
37 | * Read MPIDR: Multiprocessor affinity register | ||
38 | */ | ||
39 | #define hard_smp_processor_id() \ | ||
40 | ({ \ | ||
41 | unsigned int cpunum; \ | ||
42 | __asm__("mrc p15, 0, %0, c0, c0, 5" \ | ||
43 | : "=r" (cpunum)); \ | ||
44 | cpunum &= 0x0F; \ | ||
45 | }) | ||
46 | |||
47 | #endif | 37 | #endif |