Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83907
b: refs/heads/master
c: b62f134
h: refs/heads/master
i:
  83905: f8c07e4
  83903: 1261ac7
v: v3
  • Loading branch information
Mathieu Desnoyers authored and Linus Torvalds committed Feb 7, 2008
1 parent 2a17bd0 commit db247d9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80af4eeb726f038eddc32826e4238feba5b1dfb4
refs/heads/master: b62f13439147210d5ad4bc40acee32b94c59f06d
15 changes: 15 additions & 0 deletions trunk/include/asm-v850/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,21 @@ static inline unsigned long __xchg (unsigned long with,
return tmp;
}

#include <asm-generic/cmpxchg-local.h>

/*
* cmpxchg_local and cmpxchg64_local are atomic wrt current CPU. Always make
* them available.
*/
#define cmpxchg_local(ptr, o, n) \
((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
(unsigned long)(n), sizeof(*(ptr))))
#define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n))

#ifndef CONFIG_SMP
#include <asm-generic/cmpxchg.h>
#endif

#define arch_align_stack(x) (x)

#endif /* __V850_SYSTEM_H__ */

0 comments on commit db247d9

Please sign in to comment.