x86/cpufeatures: Enable cpuid for Intel SHA extensions
authorTim Chen <tim.c.chen@linux.intel.com>
Fri, 21 Aug 2015 21:56:46 +0000 (14:56 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 22 Aug 2015 09:17:31 +0000 (11:17 +0200)
commit488ca7d72d974e3c00ae73ed9f947590680bdf00
tree78c6c9356cb34f2ffcdb112fef19a94d3893303a
parent3243f50b0c564a1b492defebe7218d26a2b811c9
x86/cpufeatures: Enable cpuid for Intel SHA extensions

Add Intel CPUID for Intel Secure Hash Algorithm Extensions. This feature
provides new instructions for accelerated computation of SHA-1 and SHA-256.
This allows the feature to be shown in the /proc/cpuinfo for cpus that
support it.

Refer to SHA extension programming guide in chapter 8.2 of the Intel
Architecture Instruction Set Extensions Programming reference
for definition of this feature's cpuid: CPUID.(EAX=07H, ECX=0):EBX.SHA [bit 29] = 1
https://software.intel.com/sites/default/files/managed/07/b7/319433-023.pdf

Originally-by: Chandramouli Narayanan <mouli_7982@yahoo.com>
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Link: http://lkml.kernel.org/r/1440194206.3940.6.camel@schen9-mobl2
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/cpufeature.h