Index: arch/mips32/include/atomic.h
===================================================================
--- arch/mips32/include/atomic.h	(revision 59e07c91fccb189beb5623b72a240b638917ebb2)
+++ arch/mips32/include/atomic.h	(revision 30187ebf258f432c2c4e53c8b41852e6ea4ec6b0)
@@ -35,4 +35,11 @@
 #define atomic_dec(x)	(a_sub(x,1))
 
+#define atomic_inc_pre(x) (a_add(x,1)-1)
+#define atomic_dec_pre(x) (a_sub(x,1)+1)
+
+#define atomic_inc_post(x) (a_add(x,1))
+#define atomic_dec_post(x) (a_sub(x,1))
+
+
 typedef volatile __u32 atomic_t;
 
@@ -45,4 +52,7 @@
  * of the variable to a special register and if another process writes to
  * the same location, the SC (store-conditional) instruction fails.
+ 
+ Returns (*val)+i
+ 
  */
 static inline atomic_t a_add(atomic_t *val, int i)
@@ -73,4 +83,7 @@
  *
  * Implemented in the same manner as a_add, except we substract the value.
+
+ Returns (*val)-i
+
  */
 static inline atomic_t a_sub(atomic_t *val, int i)
