Skip to content

Commit

Permalink
MIPS: Use generic GCC library routines from lib/
Browse files Browse the repository at this point in the history
The commit b35cd98 ("lib: Add shared copies of some GCC library
routines") makes it possible to share generic GCC library routines by
several architectures.

This commit removes several generic GCC library routines from
arch/mips/lib/ in favour of similar routines from lib/.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
[Matt Redfearn] Use GENERIC_LIB_* named Kconfig entries
Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/19051/
Signed-off-by: James Hogan <jhogan@kernel.org>
  • Loading branch information
Antony Pavlov authored and James Hogan committed Apr 23, 2018
1 parent 9ed491b commit 740129b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 144 deletions.
5 changes: 5 additions & 0 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ config MIPS
select GENERIC_CPU_AUTOPROBE
select GENERIC_IRQ_PROBE
select GENERIC_IRQ_SHOW
select GENERIC_LIB_ASHLDI3
select GENERIC_LIB_ASHRDI3
select GENERIC_LIB_CMPDI2
select GENERIC_LIB_LSHRDI3
select GENERIC_LIB_UCMPDI2
select GENERIC_PCI_IOMAP
select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
select GENERIC_SMP_IDLE_THREAD
Expand Down
3 changes: 1 addition & 2 deletions arch/mips/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ obj-$(CONFIG_CPU_R3000) += r3k_dump_tlb.o
obj-$(CONFIG_CPU_TX39XX) += r3k_dump_tlb.o

# libgcc-style stuff needed in the kernel
obj-y += ashldi3.o ashrdi3.o bswapsi.o bswapdi.o cmpdi2.o lshrdi3.o multi3.o \
ucmpdi2.o
obj-y += bswapsi.o bswapdi.o multi3.o
30 changes: 0 additions & 30 deletions arch/mips/lib/ashldi3.c

This file was deleted.

32 changes: 0 additions & 32 deletions arch/mips/lib/ashrdi3.c

This file was deleted.

28 changes: 0 additions & 28 deletions arch/mips/lib/cmpdi2.c

This file was deleted.

30 changes: 0 additions & 30 deletions arch/mips/lib/lshrdi3.c

This file was deleted.

22 changes: 0 additions & 22 deletions arch/mips/lib/ucmpdi2.c

This file was deleted.

0 comments on commit 740129b

Please sign in to comment.