Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3936
b: refs/heads/master
c: 053a7b5
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jun 28, 2005
1 parent 756e1e6 commit d1f2029
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 4b0ef3b1127776d4a2787d7530ac0c4da82c2331
refs/heads/master: 053a7b5b7617a72d7c61b6f84196d1c0f79b9849
12 changes: 9 additions & 3 deletions trunk/include/asm-arm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ do { \
})

#ifdef CONFIG_SMP
#error SMP not supported

#define smp_mb() mb()
#define smp_rmb() rmb()
Expand All @@ -304,6 +303,8 @@ do { \
#define smp_wmb() barrier()
#define smp_read_barrier_depends() do { } while(0)

#endif /* CONFIG_SMP */

#if defined(CONFIG_CPU_SA1100) || defined(CONFIG_CPU_SA110)
/*
* On the StrongARM, "swp" is terminally broken since it bypasses the
Expand All @@ -316,9 +317,16 @@ do { \
*
* We choose (1) since its the "easiest" to achieve here and is not
* dependent on the processor type.
*
* NOTE that this solution won't work on an SMP system, so explcitly
* forbid it here.
*/
#ifdef CONFIG_SMP
#error SMP is not supported on SA1100/SA110
#else
#define swp_is_buggy
#endif
#endif

static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size)
{
Expand Down Expand Up @@ -361,8 +369,6 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size
return ret;
}

#endif /* CONFIG_SMP */

#endif /* __ASSEMBLY__ */

#define arch_align_stack(x) (x)
Expand Down

0 comments on commit d1f2029

Please sign in to comment.