]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: elf_hwcap: Export userspace ASEs
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Thu, 10 Oct 2019 15:01:57 +0000 (23:01 +0800)
committerPaul Burton <paul.burton@mips.com>
Thu, 10 Oct 2019 18:57:36 +0000 (11:57 -0700)
commit1025fc4e3ad47c9dbc6ed7897d81e9731e6b351d
tree988621d9c668af750b9d4c360b7d8fd63827652f
parentdd36581003dbc3a93fb5182eda9d51b1b1dd35d4
MIPS: elf_hwcap: Export userspace ASEs

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>
arch/mips/include/uapi/asm/hwcap.h
arch/mips/kernel/cpu-probe.c