]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cavium - Fix smp_processor_id() warnings
authorJan Glauber <jglauber@cavium.com>
Mon, 9 Apr 2018 15:45:54 +0000 (17:45 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Apr 2018 16:58:36 +0000 (00:58 +0800)
commitddac5af55ab6ab945d45a54fd7571950c8220726
tree5837a69df9fc0a92bda3fd9ce830cd417ceb45db
parent3f8ba5aea1cfe5cf3baa5d2cdb88f3aefc03f1ff
crypto: cavium - Fix smp_processor_id() warnings

Switch to raw_smp_processor_id() to prevent a number of
warnings from kernel debugging. We do not care about
preemption here, as the CPU number is only used as a
poor mans load balancing or device selection. If preemption
happens during a compress/decompress operation a small performance
hit will occur but everything will continue to work, so just
ignore it.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Reviewed-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/zip/zip_device.c
drivers/crypto/cavium/zip/zip_main.c