bitops.h (f312eff8164879e04923d41e9dd23e7850937d85) | bitops.h (61f2e7b0f474225b4226772830ae4b29a3a21f8d) |
---|---|
1/* 2 * PowerPC atomic bit operations. 3 * 4 * Merged version by David Gibson <david@gibson.dropbear.id.au>. 5 * Based on ppc64 versions by: Dave Engebretsen, Todd Inglett, Don 6 * Reed, Pat McCarthy, Peter Bergner, Anton Blanchard. They 7 * originally took it from the ppc32 code. 8 * --- 318 unchanged lines hidden (view full) --- 327 unsigned long size, unsigned long offset); 328/* Bitmap functions for the ext2 filesystem */ 329 330#define ext2_set_bit_atomic(lock, nr, addr) \ 331 test_and_set_bit_le((nr), (unsigned long*)addr) 332#define ext2_clear_bit_atomic(lock, nr, addr) \ 333 test_and_clear_bit_le((nr), (unsigned long*)addr) 334 | 1/* 2 * PowerPC atomic bit operations. 3 * 4 * Merged version by David Gibson <david@gibson.dropbear.id.au>. 5 * Based on ppc64 versions by: Dave Engebretsen, Todd Inglett, Don 6 * Reed, Pat McCarthy, Peter Bergner, Anton Blanchard. They 7 * originally took it from the ppc32 code. 8 * --- 318 unchanged lines hidden (view full) --- 327 unsigned long size, unsigned long offset); 328/* Bitmap functions for the ext2 filesystem */ 329 330#define ext2_set_bit_atomic(lock, nr, addr) \ 331 test_and_set_bit_le((nr), (unsigned long*)addr) 332#define ext2_clear_bit_atomic(lock, nr, addr) \ 333 test_and_clear_bit_le((nr), (unsigned long*)addr) 334 |
335/* Bitmap functions for the minix filesystem. */ 336 337#define minix_test_and_set_bit(nr,addr) \ 338 __test_and_set_bit_le(nr, (unsigned long *)addr) 339#define minix_set_bit(nr,addr) \ 340 __set_bit_le(nr, (unsigned long *)addr) 341#define minix_test_and_clear_bit(nr,addr) \ 342 __test_and_clear_bit_le(nr, (unsigned long *)addr) 343#define minix_test_bit(nr,addr) \ 344 test_bit_le(nr, (unsigned long *)addr) 345 346#define minix_find_first_zero_bit(addr,size) \ 347 find_first_zero_bit_le((unsigned long *)addr, size) 348 | |
349#include <asm-generic/bitops/sched.h> 350 351#endif /* __KERNEL__ */ 352 353#endif /* _ASM_POWERPC_BITOPS_H */ | 335#include <asm-generic/bitops/sched.h> 336 337#endif /* __KERNEL__ */ 338 339#endif /* _ASM_POWERPC_BITOPS_H */ |