From 846a670a7dde10afa345fd0a3c5898fede0c128c Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Tue, 5 Oct 2010 16:40:13 +0100 Subject: [PATCH] --- yaml --- r: 212413 b: refs/heads/master c: 7511db9d25080d53e5427bf4b8849278c07019bc h: refs/heads/master i: 212411: ad27a1cecc4a02e92091f5188ef728af3b9588e8 v: v3 --- [refs] | 2 +- trunk/arch/arm/include/asm/smp_plat.h | 28 ++++++++++++++++----------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/[refs] b/[refs] index d4d435665748..755701842bec 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 81d11955bf0b5ae25e3adbec930cd84840385dae +refs/heads/master: 7511db9d25080d53e5427bf4b8849278c07019bc diff --git a/trunk/arch/arm/include/asm/smp_plat.h b/trunk/arch/arm/include/asm/smp_plat.h index 7de5aa56c18b..7f4e6633f753 100644 --- a/trunk/arch/arm/include/asm/smp_plat.h +++ b/trunk/arch/arm/include/asm/smp_plat.h @@ -7,17 +7,6 @@ #include -/* all SMP configurations have the extended CPUID registers */ -static inline int tlb_ops_need_broadcast(void) -{ - return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 2; -} - -static inline int cache_ops_need_broadcast(void) -{ - return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 1; -} - /* * Return true if we are running on a SMP platform */ @@ -33,4 +22,21 @@ static inline bool is_smp(void) #endif } +/* all SMP configurations have the extended CPUID registers */ +static inline int tlb_ops_need_broadcast(void) +{ + if (!is_smp()) + return 0; + + return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 2; +} + +static inline int cache_ops_need_broadcast(void) +{ + if (!is_smp()) + return 0; + + return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 1; +} + #endif