Commit afca6e06 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Huacai Chen

LoongArch: Clean up plat_swiotlb_setup() related code

After commit c78c43fe ("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: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 370a3b8f
...@@ -13,7 +13,6 @@ const char *get_system_type(void); ...@@ -13,7 +13,6 @@ const char *get_system_type(void);
extern void init_environ(void); extern void init_environ(void);
extern void memblock_init(void); extern void memblock_init(void);
extern void platform_init(void); extern void platform_init(void);
extern void plat_swiotlb_setup(void);
extern int __init init_numa_memory(void); extern int __init init_numa_memory(void);
struct loongson_board_info { struct loongson_board_info {
......
...@@ -389,8 +389,8 @@ static void __init arch_mem_init(char **cmdline_p) ...@@ -389,8 +389,8 @@ static void __init arch_mem_init(char **cmdline_p)
/* /*
* In order to reduce the possibility of kernel panic when failed to * In order to reduce the possibility of kernel panic when failed to
* get IO TLB memory under CONFIG_SWIOTLB, it is better to allocate * get IO TLB memory under CONFIG_SWIOTLB, it is better to allocate
* low memory as small as possible before plat_swiotlb_setup(), so * low memory as small as possible before swiotlb_init(), so make
* make sparse_init() using top-down allocation. * sparse_init() using top-down allocation.
*/ */
memblock_set_bottom_up(false); memblock_set_bottom_up(false);
sparse_init(); sparse_init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment