mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-23 15:09:36 +00:00
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> |
||
|---|---|---|
| .. | ||
| cpt_common.h | ||
| cpt_hw_types.h | ||
| cptpf_main.c | ||
| cptpf_mbox.c | ||
| cptpf.h | ||
| cptvf_algs.c | ||
| cptvf_algs.h | ||
| cptvf_main.c | ||
| cptvf_mbox.c | ||
| cptvf_reqmanager.c | ||
| cptvf.h | ||
| Kconfig | ||
| Makefile | ||
| request_manager.h | ||