crypto: aes-ni - Don't print message with KERN_ERR on old system
authorRoland Dreier <rolandd@cisco.com>
Wed, 24 Jun 2009 05:42:40 +0000 (13:42 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 24 Jun 2009 05:42:40 +0000 (13:42 +0800)
commitc9944881acf02b6f25fa62a0441a98b7dc0d7ae6
tree264d1e88c293bf8d959d4cbceaa348325618629b
parent215ccd6f55a2144bd553e0a3d12e1386f02309fd
crypto: aes-ni - Don't print message with KERN_ERR on old system

When the aes-intel module is loaded on a system that does not have the
AES instructions, it prints

    Intel AES-NI instructions are not detected.

at level KERN_ERR.  Since aes-intel is aliased to "aes" it will be tried
whenever anything uses AES and spam the console.  This doesn't match
existing practice for how to handle "no hardware" when initializing a
module, so downgrade the message to KERN_INFO.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c