mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
x86: switch 64-bit to generic find_first_bit
Switch x86_64 to generic find_first_bit. The x86_64-specific implementation is not removed. Signed-off-by: Alexander van Heukelum <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
77b9bd9c49
commit
2aba6925fd
3 changed files with 5 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
* Copyright 1992, Linus Torvalds.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_GENERIC_FIND_FIRST_BIT
|
||||
extern long find_first_zero_bit(const unsigned long *addr, unsigned long size);
|
||||
extern long find_first_bit(const unsigned long *addr, unsigned long size);
|
||||
|
||||
|
|
@ -24,6 +25,7 @@ static inline long __scanbit(unsigned long val, unsigned long max)
|
|||
((__builtin_constant_p((size)) && (size) <= BITS_PER_LONG \
|
||||
? (__scanbit(~*(unsigned long *)(addr), (size))) \
|
||||
: find_first_zero_bit((addr), (size))))
|
||||
#endif
|
||||
|
||||
static inline void set_bit_string(unsigned long *bitmap, unsigned long i,
|
||||
int len)
|
||||
|
|
|
|||
Loading…
Reference in a new issue