Jia-Ju Bai
86c4e7c350
video: fbdev: aty: aty128fb: Replace mdelay with msleep in aty128_set_suspend
...
aty128_set_suspend() is never called in atomic context.
The call chains ending up at aty128_set_suspend() are:
[1] aty128_set_suspend() <- aty128_pci_suspend()
[2] aty128_set_suspend() <- aty128_do_resume() <- aty128_pci_resume()
[3] aty128_set_suspend() <- aty128_do_resume() <- aty128_early_resume()
aty128_pci_suspend() is set as ".suspend" in struct pci_driver.
aty128_pci_resume() is set as ".resume" in struct pci_driver.
aty128_early_resume() is never called.
These functions are not called in atomic context.
Despite never getting called from atomic context, aty128_set_suspend()
calls mdelay() to busily wait.
This 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.
And I also manually check it.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com >
Cc: Paul Mackerras <paulus@samba.org >
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com >
2018-04-24 18:11:21 +02:00
..
2018-04-24 18:11:21 +02:00
2018-02-27 10:17:33 +01:00
2018-02-15 01:15:52 +01:00
2017-11-02 11:10:55 +01:00
2018-01-17 08:16:46 -06:00
2017-08-01 17:20:42 +02:00
2018-03-28 16:34:28 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-15 17:04:22 +01:00
2018-01-17 08:16:46 -06:00
2017-11-20 21:50:24 -10:00
2018-02-09 14:43:49 +01:00
2018-01-17 08:16:46 -06:00
2018-04-24 18:11:21 +02:00
2018-03-12 17:06:52 +01:00
2018-03-12 17:06:54 +01:00
2018-03-12 17:06:55 +01:00
2017-09-04 16:00:49 +02:00
2017-04-07 17:03:24 +02:00
2017-02-25 13:20:22 -08:00
2017-11-02 11:10:55 +01:00
2017-01-30 17:39:48 +01:00
2017-11-02 11:10:55 +01:00
2018-03-28 16:34:29 +02:00
2017-02-08 16:44:00 +01:00
2017-04-20 12:02:32 +01:00
2017-08-01 17:20:42 +02:00
2017-08-01 17:20:41 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-12 17:06:52 +01:00
2018-03-28 16:34:29 +02:00
2017-11-09 18:09:30 +01:00
2018-01-04 16:53:49 +01:00
2018-02-07 13:10:43 -08:00
2017-08-07 17:22:13 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-07 17:22:13 +02:00
2017-08-07 17:22:13 +02:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:39 +02:00
2017-11-09 18:09:32 +01:00
2016-07-06 17:38:19 +02:00
2017-08-01 17:20:39 +02:00
2017-11-09 18:09:33 +01:00
2017-09-04 16:00:49 +02:00
2017-08-01 17:20:39 +02:00
2017-11-09 18:09:31 +01:00
2017-12-04 23:03:21 +01:00
2017-09-04 16:00:50 +02:00
2017-08-07 17:22:13 +02:00
2017-09-04 16:00:49 +02:00
2018-03-28 16:34:28 +02:00
2017-11-09 18:09:31 +01:00
2017-09-04 16:00:49 +02:00
2016-09-27 11:16:35 +03:00
2016-09-27 11:16:35 +03:00
2016-12-24 11:46:01 -08:00
2017-05-27 15:41:17 -04:00
2016-04-30 14:01:37 -07:00
2016-09-27 11:16:35 +03:00
2017-08-01 17:20:43 +02:00
2017-07-31 18:45:41 +02:00
2017-05-22 17:22:06 +02:00
2018-04-10 10:20:00 -07:00
2017-08-07 17:22:13 +02:00
2018-01-16 16:47:29 +01:00
2018-03-26 15:56:44 +02:00
2017-09-04 16:00:50 +02:00
2017-02-27 18:43:47 -08:00
2016-12-24 11:46:01 -08:00
2018-01-15 17:04:22 +01:00
2017-04-20 12:02:32 +01:00
2017-08-01 17:20:44 +02:00
2018-03-12 17:06:54 +01:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:43 +02:00
2017-08-01 17:20:45 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:49 +02:00
2017-09-22 23:14:36 -04:00
2018-01-04 16:53:49 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-14 17:40:56 +02:00
2017-09-04 16:00:50 +02:00
2018-03-26 15:56:46 +02:00
2016-08-11 17:54:55 +03:00
2016-08-11 17:54:55 +03:00
2018-03-28 16:34:29 +02:00
2017-08-01 17:20:45 +02:00
2017-10-17 16:01:13 +02:00
2017-10-17 16:01:13 +02:00
2018-03-07 14:00:34 +01:00
2017-11-02 11:10:55 +01:00
2017-06-14 17:40:57 +02:00
2017-11-02 11:10:55 +01:00
2017-01-11 17:09:50 +01:00
2017-09-04 16:00:49 +02:00
2017-11-17 17:21:48 +01:00
2017-08-01 17:20:38 +02:00
2018-03-28 16:34:28 +02:00
2018-03-28 16:34:28 +02:00
2017-11-02 11:10:55 +01:00
2018-04-10 10:20:00 -07:00
2017-08-01 17:20:43 +02:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:41 +02:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:43 +02:00
2017-08-01 17:20:41 +02:00
2018-03-28 16:34:27 +02:00
2017-09-14 13:33:33 -07:00
2018-01-04 16:53:50 +01:00
2017-12-29 19:48:43 +01:00
2017-12-29 19:48:44 +01:00
2017-08-18 19:56:40 +02:00
2018-01-09 16:33:31 +01:00
2017-12-29 19:48:43 +01:00
2017-11-02 11:10:55 +01:00
2017-05-11 11:12:26 -07:00
2017-08-21 16:49:57 +02:00