[PATCH] bitops: generic ext2_{set,clear}_bit_atomic()
authorAkinobu Mita <mita@miraclelinux.com>
Sun, 26 Mar 2006 09:39:16 +0000 (01:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:11 +0000 (08:57 -0800)
commit765f34fe324bdf0c0544b3404d25aaa511e3834b
tree073161aa7c213b15e0d3be6d99a2649de3030e00
parent930ae745f50088279fdc06057a429f16495b53a2
[PATCH] bitops: generic ext2_{set,clear}_bit_atomic()

This patch introduces the C-language equivalents of the functions below:

int ext2_set_bit_atomic(int nr, volatile unsigned long *addr);
int ext2_clear_bit_atomic(int nr, volatile unsigned long *addr);

In include/asm-generic/bitops/ext2-atomic.h

This code largely copied from: include/asm-sparc/bitops.h

Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/bitops/ext2-atomic.h [new file with mode: 0644]