sparc64: Add detection for features new in SPARC-T4.
authorDavid S. Miller <davem@davemloft.net>
Thu, 16 Aug 2012 23:41:04 +0000 (16:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Aug 2012 06:02:36 +0000 (23:02 -0700)
commit6f859c0e96f0737a543610a189d12420c569110f
treea3623aa1d8eb1aa356357ba37197aa2d4aaa9503
parent6dab7ede9390d4d937cb89feca932e4fd575d2da
sparc64: Add detection for features new in SPARC-T4.

Compare and branch, pause, and the various new cryptographic opcodes.

We advertise the crypto opcodes to userspace using one hwcap bit,
HWCAP_SPARC_CRYPTO.

This essentially indicates that the %cfr register can be interrograted
and used to determine exactly which crypto opcodes are available on
the current cpu.

We use the %cfr register to report all of the crypto opcodes available
in the bootup CPU caps log message, and via /proc/cpuinfo.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/elf_64.h
arch/sparc/include/asm/pstate.h
arch/sparc/kernel/setup_64.c