summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/aty/radeon_i2c.c
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2018-04-24 18:11:21 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-04-24 18:11:21 +0200
commitde11731278712e0f8b12a2539aa2958ca95200c3 (patch)
treee7de080557302d3807ad18c79a031f5a15c17226 /drivers/video/fbdev/aty/radeon_i2c.c
parentvideo: fbdev: aty: aty128fb: Replace mdelay with msleep in aty128_set_suspend (diff)
downloadlinux-de11731278712e0f8b12a2539aa2958ca95200c3.tar.xz
linux-de11731278712e0f8b12a2539aa2958ca95200c3.zip
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/fbdev/aty/radeon_i2c.c')
0 files changed, 0 insertions, 0 deletions