projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'bkl/procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic...
[linux-2.6-block.git]
/
arch
/
mn10300
/
include
/
asm
/
atomic.h
diff --git
a/arch/mn10300/include/asm/atomic.h
b/arch/mn10300/include/asm/atomic.h
index 5bf5be9566dece295d8922a8c3c54aa9f5420615..e41222d6c2fd1a5d3a97a20482c09ff10b652eba 100644
(file)
--- a/
arch/mn10300/include/asm/atomic.h
+++ b/
arch/mn10300/include/asm/atomic.h
@@
-31,7
+31,7
@@
* Atomically reads the value of @v. Note that the guaranteed
* useful range of an atomic_t is only 24 bits.
*/
-#define atomic_read(v) ((v)->counter)
+#define atomic_read(v) (
*(volatile int *)&
(v)->counter)
/**
* atomic_set - set atomic variable