summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson64
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-11-03 15:12:00 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-11-11 23:51:47 +0100
commit4d1b3ac886b5c03e966199edcc7e0efddd5c4cb2 (patch)
tree12ba3916ea81faf781f8cdfd925f4ea20d878b98 /arch/mips/loongson64
parent4abaacc704729ec93a6ca23f6b3a92532337959b (diff)
downloadlinux-4d1b3ac886b5c03e966199edcc7e0efddd5c4cb2.tar.bz2
MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the write operations are meaningless, remove them. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/loongson64')
-rw-r--r--arch/mips/loongson64/numa.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c
index cf9459f79f9b..c7e3ccedc74f 100644
--- a/arch/mips/loongson64/numa.c
+++ b/arch/mips/loongson64/numa.c
@@ -40,9 +40,6 @@ static void enable_lpa(void)
unsigned long value;
value = __read_32bit_c0_register($16, 3);
- value |= 0x00000080;
- __write_32bit_c0_register($16, 3, value);
- value = __read_32bit_c0_register($16, 3);
pr_info("CP0_Config3: CP0 16.3 (0x%lx)\n", value);
value = __read_32bit_c0_register($5, 1);