Skip to content

Commit afca6e0

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Clean up plat_swiotlb_setup() related code
After commit c78c43f ("LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA"), plat_swiotlb_setup() has been deleted, so clean up the related code. Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 370a3b8 commit afca6e0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

arch/loongarch/include/asm/bootinfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const char *get_system_type(void);
1313
extern void init_environ(void);
1414
extern void memblock_init(void);
1515
extern void platform_init(void);
16-
extern void plat_swiotlb_setup(void);
1716
extern int __init init_numa_memory(void);
1817

1918
struct loongson_board_info {

arch/loongarch/kernel/setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ static void __init arch_mem_init(char **cmdline_p)
389389
/*
390390
* In order to reduce the possibility of kernel panic when failed to
391391
* get IO TLB memory under CONFIG_SWIOTLB, it is better to allocate
392-
* low memory as small as possible before plat_swiotlb_setup(), so
393-
* make sparse_init() using top-down allocation.
392+
* low memory as small as possible before swiotlb_init(), so make
393+
* sparse_init() using top-down allocation.
394394
*/
395395
memblock_set_bottom_up(false);
396396
sparse_init();

0 commit comments

Comments
 (0)