diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-04-24 18:11:21 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-04-24 18:11:21 +0200 |
commit | de11731278712e0f8b12a2539aa2958ca95200c3 (patch) | |
tree | e7de080557302d3807ad18c79a031f5a15c17226 /drivers/video/console/Makefile | |
parent | 86c4e7c350a5bd116ff4b9cea2c75a4a4ae321ff (diff) | |
download | linux-de11731278712e0f8b12a2539aa2958ca95200c3.tar.bz2 |
video: fbdev: aty: radeon_pm: Replace mdelay with msleep in radeonfb_pci_suspend
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 <baijiaju1990@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/console/Makefile')
0 files changed, 0 insertions, 0 deletions