diff options
author | Shaohua Li <shli@kernel.org> | 2012-10-08 16:32:18 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 16:22:46 +0900 |
commit | e79bee24fd6134f90af4228cfebd010136d67631 (patch) | |
tree | ecc678106bbf4672becca8f798aaf94276eaa2c4 /arch/mips | |
parent | 435b405c06119d93333738172b8060b0ed12af41 (diff) | |
download | linux-3.10-e79bee24fd6134f90af4228cfebd010136d67631.tar.gz linux-3.10-e79bee24fd6134f90af4228cfebd010136d67631.tar.bz2 linux-3.10-e79bee24fd6134f90af4228cfebd010136d67631.zip |
atomic: implement generic atomic_dec_if_positive()
The x86 implementation of atomic_dec_if_positive is quite generic, so make
it available to all architectures.
This is needed for "swap: add a simple detector for inappropriate swapin
readahead".
[akpm@linux-foundation.org: do the "#define foo foo" trick in the conventional manner]
Signed-off-by: Shaohua Li <shli@fusionio.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Rik van Riel <riel@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions