2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 10:13:58 +08:00
linux-next/arch/mips/include/asm/mach-loongson64
Tiezhu Yang cf8194e46c MIPS: Loongson64: Give chance to build under !CONFIG_NUMA and !CONFIG_SMP
In the current code, we can not build under !CONFIG_NUMA and !CONFIG_SMP
on the Loongson64 platform, it seems bad for the users who just want to
use pure single core (not nosmp) to debug, so do the following things to
give them a chance:

(1) Do not select NUMA and SMP for MACH_LOONGSON64 in Kconfig, make NUMA
depends on SMP, and then just set them in the loongson3_defconfig.
(2) Move szmem() from numa.c to init.c and add prom_init_memory() under
!CONFIG_NUMA.
(3) Clean up szmem() due to the statements of case SYSTEM_RAM_LOW and
SYSTEM_RAM_HIGH are the same.
(4) Remove the useless declaration of prom_init_memory() and add the
declaration of szmem() in loongson.h to avoid build error.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Jinyang He <hejinyang@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2021-01-04 11:15:07 +01:00
..
boot_param.h MIPS: Loongson64: Add /sys/firmware/lefi/boardinfo 2020-10-27 12:46:06 +01:00
builtin_dtbs.h MIPS: KVM: Add kvm guest support for Loongson-3 2020-08-04 09:39:29 +02:00
cpu-feature-overrides.h MIPS: Loongson64: Do not override watch and ejtag feature 2020-08-17 12:50:59 +02:00
cpucfg-emul.h MIPS: Loongson64: Guard against future cores without CPUCFG 2020-05-31 10:52:42 +02:00
irq.h MIPS updates for v5.10: 2020-10-16 12:40:55 -07:00
kernel-entry-init.h MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3 2020-11-11 23:51:47 +01:00
loongson_hwmon.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
loongson_regs.h MIPS: Loongson64: Add Mail_Send support for 3A4000+ CPU 2020-11-11 23:52:50 +01:00
loongson.h MIPS: Loongson64: Give chance to build under !CONFIG_NUMA and !CONFIG_SMP 2021-01-04 11:15:07 +01:00
mmzone.h MIPS updates for v5.10: 2020-10-16 12:40:55 -07:00
pci.h MIPS: Loongson64: Cleanup unused code 2019-11-01 14:31:28 -07:00
spaces.h MIPS: Loongson64: Enlarge IO_SPACE_LIMIT 2020-07-28 22:49:53 +02:00
topology.h MIPS: Loongson64: Cleanup unused code 2019-11-01 14:31:28 -07:00
workarounds.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00