Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc38682f authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Linus Torvalds
Browse files

Some grammatical fixups and additions to atomic.h kernel-doc content



Tweak and add content for extractable documentation in asm-i386/atomic.h.

Signed-off-by: default avatarRobert P. J. Day <rpjday@mindspring.com>
Acked-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0ba34e19
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ static __inline__ void atomic_add(int i, atomic_t *v)
}

/**
 * atomic_sub - subtract the atomic variable
 * atomic_sub - subtract integer from atomic variable
 * @i: integer value to subtract
 * @v: pointer of type atomic_t
 * 
@@ -171,7 +171,7 @@ static __inline__ int atomic_add_negative(int i, atomic_t *v)
}

/**
 * atomic_add_return - add and return
 * atomic_add_return - add integer and return
 * @v: pointer of type atomic_t
 * @i: integer value to add
 *
@@ -203,6 +203,13 @@ static __inline__ int atomic_add_return(int i, atomic_t *v)
#endif
}

/**
 * atomic_sub_return - subtract integer and return
 * @v: pointer of type atomic_t
 * @i: integer value to subtract
 *
 * Atomically subtracts @i from @v and returns @v - @i
 */
static __inline__ int atomic_sub_return(int i, atomic_t *v)
{
	return atomic_add_return(-i,v);