diff options
Diffstat (limited to 'arch/arm/include/asm/smp_plat.h')
-rw-r--r-- | arch/arm/include/asm/smp_plat.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/include/asm/smp_plat.h b/arch/arm/include/asm/smp_plat.h index e6215305544a..7de5aa56c18b 100644 --- a/arch/arm/include/asm/smp_plat.h +++ b/arch/arm/include/asm/smp_plat.h | |||
@@ -18,4 +18,19 @@ static inline int cache_ops_need_broadcast(void) | |||
18 | return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 1; | 18 | return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 1; |
19 | } | 19 | } |
20 | 20 | ||
21 | /* | ||
22 | * Return true if we are running on a SMP platform | ||
23 | */ | ||
24 | static inline bool is_smp(void) | ||
25 | { | ||
26 | #ifndef CONFIG_SMP | ||
27 | return false; | ||
28 | #elif defined(CONFIG_SMP_ON_UP) | ||
29 | extern unsigned int smp_on_up; | ||
30 | return !!smp_on_up; | ||
31 | #else | ||
32 | return true; | ||
33 | #endif | ||
34 | } | ||
35 | |||
21 | #endif | 36 | #endif |