Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93677
b: refs/heads/master
c: 2aba692
h: refs/heads/master
i:
  93675: 7ef4a30
v: v3
  • Loading branch information
Alexander van Heukelum authored and Ingo Molnar committed Apr 26, 2008
1 parent 589a985 commit 3561f11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77b9bd9c49442407804c37bcc82021a35277f83c
refs/heads/master: 2aba6925fdb96428d1129a61b1233597a03a387b
2 changes: 1 addition & 1 deletion trunk/arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ config GENERIC_BUG
depends on BUG

config GENERIC_FIND_FIRST_BIT
def_bool X86_32
def_bool y

config GENERIC_FIND_NEXT_BIT
def_bool y
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/x86/lib/bitops_64.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#ifndef CONFIG_GENERIC_FIND_FIRST_BIT
#include <linux/bitops.h>

#undef find_first_zero_bit
Expand Down Expand Up @@ -105,3 +106,4 @@ long find_first_bit(const unsigned long * addr, unsigned long size)

EXPORT_SYMBOL(find_first_bit);
EXPORT_SYMBOL(find_first_zero_bit);
#endif
2 changes: 2 additions & 0 deletions trunk/include/asm-x86/bitops_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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)
Expand Down

0 comments on commit 3561f11

Please sign in to comment.