Skip to content

Commit

Permalink
loongarch: Use new fallback IO memcpy/memset
Browse files Browse the repository at this point in the history
Use the new fallback memcpy_{from,to}io and memset_io functions from
lib/iomem_copy.c on the loongarch processor architecture.

Reviewed-by: Yann Sionneau <[email protected]>
Signed-off-by: Julian Vetter <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
d3athjest3r authored and arndb committed Oct 28, 2024
1 parent 4c9397c commit 6e3f5e6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 105 deletions.
10 changes: 0 additions & 10 deletions arch/loongarch/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,6 @@ static inline void __iomem *ioremap_prot(phys_addr_t offset, unsigned long size,

#define mmiowb() wmb()

/*
* String version of I/O memory access operations.
*/
extern void __memset_io(volatile void __iomem *dst, int c, size_t count);
extern void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count);
extern void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count);
#define memset_io(c, v, l) __memset_io((c), (v), (l))
#define memcpy_fromio(a, c, l) __memcpy_fromio((a), (c), (l))
#define memcpy_toio(c, a, l) __memcpy_toio((c), (a), (l))

#define __io_aw() mmiowb()

#ifdef CONFIG_KFENCE
Expand Down
2 changes: 1 addition & 1 deletion arch/loongarch/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OBJECT_FILES_NON_STANDARD_head.o := y
extra-y := vmlinux.lds

obj-y += head.o cpu-probe.o cacheinfo.o env.o setup.o entry.o genex.o \
traps.o irq.o idle.o process.o dma.o mem.o io.o reset.o switch.o \
traps.o irq.o idle.o process.o dma.o mem.o reset.o switch.o \
elf.o syscall.o signal.o time.o topology.o inst.o ptrace.o vdso.o \
alternative.o unwind.o

Expand Down
94 changes: 0 additions & 94 deletions arch/loongarch/kernel/io.c

This file was deleted.

0 comments on commit 6e3f5e6

Please sign in to comment.