Skip to content

Commit

Permalink
[PATCH] bitops: sparc64: use generic bitops
Browse files Browse the repository at this point in the history
- remove __{,test_and_}{set,clear,change}_bit() and test_bit()
- remove ffz()
- remove __ffs()
- remove generic_fls()
- remove generic_fls64()
- remove sched_find_first_bit()
- remove ffs()

- unless defined(ULTRA_HAS_POPULATION_COUNT)

  - remove generic_hweight{64,32,16,8}()

- remove find_{next,first}{,_zero}_bit()
- remove ext2_{set,clear,test,find_first_zero,find_next_zero}_bit()
- remove minix_{test,set,test_and_clear,test,find_first_zero}_bit()

Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Mar 26, 2006
1 parent d59288b commit 2d78d4b
Showing 5 changed files with 22 additions and 339 deletions.
8 changes: 8 additions & 0 deletions arch/sparc64/Kconfig
Original file line number Diff line number Diff line change
@@ -162,6 +162,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default y

config GENERIC_FIND_NEXT_BIT
bool
default y

config GENERIC_HWEIGHT
bool
default y if !ULTRA_HAS_POPULATION_COUNT

config GENERIC_CALIBRATE_DELAY
bool
default y
5 changes: 0 additions & 5 deletions arch/sparc64/kernel/sparc64_ksyms.c
Original file line number Diff line number Diff line change
@@ -175,11 +175,6 @@ EXPORT_SYMBOL(set_bit);
EXPORT_SYMBOL(clear_bit);
EXPORT_SYMBOL(change_bit);

/* Bit searching */
EXPORT_SYMBOL(find_next_bit);
EXPORT_SYMBOL(find_next_zero_bit);
EXPORT_SYMBOL(find_next_zero_le_bit);

EXPORT_SYMBOL(ivector_table);
EXPORT_SYMBOL(enable_irq);
EXPORT_SYMBOL(disable_irq);
2 changes: 1 addition & 1 deletion arch/sparc64/lib/Makefile
Original file line number Diff line number Diff line change
@@ -14,6 +14,6 @@ lib-y := PeeCeeI.o copy_page.o clear_page.o strlen.o strncmp.o \
NGmemcpy.o NGcopy_from_user.o NGcopy_to_user.o NGpatch.o \
NGpage.o NGbzero.o \
copy_in_user.o user_fixup.o memmove.o \
mcount.o ipcsum.o rwsem.o xor.o find_bit.o delay.o
mcount.o ipcsum.o rwsem.o xor.o delay.o

obj-y += iomap.o
127 changes: 0 additions & 127 deletions arch/sparc64/lib/find_bit.c

This file was deleted.

Loading

0 comments on commit 2d78d4b

Please sign in to comment.