MIPS: Add crc instruction support flag to elf_hwcap
authorMarcin Nowakowski <marcin.nowakowski@mips.com>
Fri, 9 Feb 2018 22:11:05 +0000 (22:11 +0000)
committerJames Hogan <jhogan@kernel.org>
Mon, 19 Feb 2018 20:50:35 +0000 (20:50 +0000)
commit256211f2b0b251e532d1899b115e374feb16fa7a
tree6f47ee172a9a91d405677cf2dff8af919930b799
parentab3d8441290bcd648f487b69ea87cfe5b37d9e02
MIPS: Add crc instruction support flag to elf_hwcap

Indicate that CRC32 and CRC32C instuctions are supported by the CPU
through elf_hwcap flags.

This will be used by a follow-up commit that introduces crc32(c) crypto
acceleration modules and is required by GENERIC_CPU_AUTOPROBE feature.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@mips.com>
Signed-off-by: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18600/
arch/mips/include/asm/mipsregs.h
arch/mips/include/uapi/asm/hwcap.h
arch/mips/kernel/cpu-probe.c