mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
radeonfb_pci_suspend() is never called in atomic context. radeonfb_pci_suspend() is only set as ".suspend" in struct pci_driver. This function is not called in atomic context. Despite never getting called from atomic context, radeonfb_pci_suspend() calls mdelay() to busily wait. This is not necessary and can be replaced with msleep() and usleep_range() to avoid busy waiting. This is found by a static analysis tool named DCNS written by myself. And I also manually check it. Signed-off-by: Jia-Ju Bai <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>