MIPS: elf_hwcap: Export userspace ASEs
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Thu, 10 Oct 2019 15:01:57 +0000 (23:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2019 20:45:32 +0000 (13:45 -0700)
commit34ab38cd80982b63ed56451f9e7abd08677f1769
tree31938d70f44c8135d4449eba4712070a04c9b308
parentaaa81d9e6523b4fe55aee536ce10bcc1c55b5d0f
MIPS: elf_hwcap: Export userspace ASEs

commit 38dffe1e4dde1d3174fdce09d67370412843ebb5 upstream.

A Golang developer reported MIPS hwcap isn't reflecting instructions
that the processor actually supported so programs can't apply optimized
code at runtime.

Thus we export the ASEs that can be used in userspace programs.

Reported-by: Meng Zhuo <mengzhuo1203@gmail.com>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-mips@vger.kernel.org
Cc: Paul Burton <paul.burton@mips.com>
Cc: <stable@vger.kernel.org> # 4.14+
Signed-off-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/include/uapi/asm/hwcap.h
arch/mips/kernel/cpu-probe.c