linux/drivers/crypto/cavium/cpt
Jia-Ju Bai e9acf05255 crypto: cavium - Replace mdelay with msleep in cpt_device_init
cpt_device_init() is never called in atomic context.

The call chain ending up at cpt_device_init() is:
[1] cpt_device_init() <- cpt_probe()
cpt_probe() is only set as ".probe" in pci_driver structure
"cpt_pci_driver".

Despite never getting called from atomic context, cpt_device_init() calls
mdelay(100), i.e. busy wait for 100ms.
That is not necessary and can be replaced with msleep to
avoid busy waiting.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-03-23 23:48:43 +08:00
..
Kconfig crypto: cavium - fix Kconfig dependencies 2017-02-15 13:23:50 +08:00
Makefile
cpt_common.h crypto: cavium - remove dead MSI-X related define 2017-02-23 20:10:59 +08:00
cpt_hw_types.h
cptpf.h crypto: cavium - switch to pci_alloc_irq_vectors 2017-02-23 20:11:00 +08:00
cptpf_main.c crypto: cavium - Replace mdelay with msleep in cpt_device_init 2018-03-23 23:48:43 +08:00
cptpf_mbox.c crypto: cavium - cpt_bind_vq_to_grp could return an error code 2017-02-15 13:23:50 +08:00
cptvf.h crypto: cavium - switch to pci_alloc_irq_vectors 2017-02-23 20:11:02 +08:00
cptvf_algs.c crypto: cavium - make several functions static 2017-07-12 18:38:09 +08:00
cptvf_algs.h crypto: cavium - Remove the individual encrypt/decrypt function for each algorithm 2017-06-19 14:11:49 +08:00
cptvf_main.c crypto: cavium - Downgrade the annoying misc interrupt print from dev_err to dev_dbg 2017-06-19 14:11:48 +08:00
cptvf_mbox.c
cptvf_reqmanager.c crypto: cavium - fix memory leak on info 2017-11-29 17:33:27 +11:00
request_manager.h