add ffs
This commit is contained in:
parent
7e58e219f8
commit
7f72d26be9
|
@ -15,11 +15,6 @@
|
|||
#ifndef __ASM_ARM_BITOPS_H
|
||||
#define __ASM_ARM_BITOPS_H
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#define smp_mb__before_clear_bit() do { } while (0)
|
||||
#define smp_mb__after_clear_bit() do { } while (0)
|
||||
|
||||
/*
|
||||
* Function prototypes to keep gcc -Wall happy.
|
||||
*/
|
||||
|
@ -139,6 +134,4 @@ static inline unsigned long ffz(unsigned long word)
|
|||
#define minix_test_bit(nr,addr) test_bit(nr,addr)
|
||||
#define minix_find_first_zero_bit(addr,size) find_first_zero_bit(addr,size)
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#endif /* _ARM_BITOPS_H */
|
||||
|
|
|
@ -66,7 +66,7 @@ static inline unsigned int generic_hweight8(unsigned int w)
|
|||
return (res & 0x0F) + ((res >> 4) & 0x0F);
|
||||
}
|
||||
|
||||
//#include <asm/bitops.h>
|
||||
#include <asm/bitops.h>
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue