Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212413
b: refs/heads/master
c: 7511db9
h: refs/heads/master
i:
  212411: ad27a1c
v: v3
  • Loading branch information
Tony Lindgren authored and Russell King committed Oct 8, 2010
1 parent a74a954 commit 846a670
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81d11955bf0b5ae25e3adbec930cd84840385dae
refs/heads/master: 7511db9d25080d53e5427bf4b8849278c07019bc
28 changes: 17 additions & 11 deletions trunk/arch/arm/include/asm/smp_plat.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@

#include <asm/cputype.h>

/* 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
*/
Expand All @@ -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

0 comments on commit 846a670

Please sign in to comment.