Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] Fix documentation typos. Signed-off-by: Arnaud Giersch <arnaud.giersch@free.fr> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Arnaud Giersch and committed by
Ralf Baechle
f10d14dd 99289a4e

+8 -6
+8 -6
include/asm-mips/atomic.h
··· 231 231 } 232 232 233 233 /* 234 - * atomic_sub_if_positive - add integer to atomic variable 234 + * atomic_sub_if_positive - conditionally subtract integer from atomic variable 235 + * @i: integer value to subtract 235 236 * @v: pointer of type atomic_t 236 237 * 237 - * Atomically test @v and decrement if it is greater than 0. 238 - * The function returns the old value of @v minus 1. 238 + * Atomically test @v and subtract @i if @v is greater or equal than @i. 239 + * The function returns the old value of @v minus @i. 239 240 */ 240 241 static __inline__ int atomic_sub_if_positive(int i, atomic_t * v) 241 242 { ··· 578 577 } 579 578 580 579 /* 581 - * atomic64_sub_if_positive - add integer to atomic variable 580 + * atomic64_sub_if_positive - conditionally subtract integer from atomic variable 581 + * @i: integer value to subtract 582 582 * @v: pointer of type atomic64_t 583 583 * 584 - * Atomically test @v and decrement if it is greater than 0. 585 - * The function returns the old value of @v minus 1. 584 + * Atomically test @v and subtract @i if @v is greater or equal than @i. 585 + * The function returns the old value of @v minus @i. 586 586 */ 587 587 static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v) 588 588 {