]> git.dujemihanovic.xyz Git - linux.git/commit
MIPS: loongson64: fix FTLB configuration
authorHuang Pei <huangpei@loongson.cn>
Thu, 25 Nov 2021 10:59:49 +0000 (18:59 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 25 Nov 2021 15:46:31 +0000 (16:46 +0100)
commit7db5e9e9e5e6c10d7d26f8df7f8fd8841cb15ee7
treec23d4f0849b1ca9998ed212a3ed543967d4e3186
parent1cab5bd69eb1f995ced2d7576cb15f8a8941fd85
MIPS: loongson64: fix FTLB configuration

It turns out that 'decode_configs' -> 'set_ftlb_enable' is called under
c->cputype unset, which leaves FTLB disabled on BOTH 3A2000 and 3A3000

Fix it by calling "decode_configs" after c->cputype is initialized

Fixes: da1bd29742b1 ("MIPS: Loongson64: Probe CPU features via CPUCFG")
Signed-off-by: Huang Pei <huangpei@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/cpu-probe.c