]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/metag/include/asm/atomic_lock1.h
Merge remote-tracking branch 'pci/next'
[karo-tx-linux.git] / arch / metag / include / asm / atomic_lock1.h
index 7d88725a85da46bea0eed2db9ffa224391f603f3..0295d9b8d5bf2730dc9fe3fed7ab523444b2354e 100644 (file)
@@ -10,7 +10,7 @@
 
 static inline int atomic_read(const atomic_t *v)
 {
-       return (v)->counter;
+       return READ_ONCE((v)->counter);
 }
 
 /*
@@ -76,16 +76,6 @@ ATOMIC_OP(xor, ^=)
 #undef ATOMIC_OP_RETURN
 #undef ATOMIC_OP
 
-static inline __deprecated void atomic_clear_mask(unsigned int mask, atomic_t *v)
-{
-       atomic_and(~mask, v);
-}
-
-static inline __deprecated void atomic_set_mask(unsigned int mask, atomic_t *v)
-{
-       atomic_or(mask, v);
-}
-
 static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
 {
        int ret;