]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
MIPS: Treat Loongson Extensions as ASEs
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Wed, 29 May 2019 08:42:59 +0000 (16:42 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 18 Oct 2019 08:26:33 +0000 (04:26 -0400)
commit3f8dcedc94c1e3358ed48e103a23c4d95b3d0657
tree38d5c798a3b3d02970733dc1c6ca2a71b1f56fcc
parent15b42c0ba9abb31228271caaea087a72ca1b0a6e
MIPS: Treat Loongson Extensions as ASEs

BugLink: https://bugs.launchpad.net/bugs/1848039
commit d2f965549006acb865c4638f1f030ebcefdc71f6 upstream.

Recently, binutils had split Loongson-3 Extensions into four ASEs:
MMI, CAM, EXT, EXT2. This patch do the samething in kernel and expose
them in cpuinfo so applications can probe supported ASEs at runtime.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Yunqiang Su <ysu@wavecomp.com>
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/mips/include/asm/cpu-features.h
arch/mips/include/asm/cpu.h
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/proc.c