diff options
| author | Jia-Ju Bai <[email protected]> | 2018-07-26 22:58:43 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-07-27 08:11:13 -0400 |
| commit | 2b5c5798750180a34cb1f39cf648d8a8bceec287 (patch) | |
| tree | e61aebc09199fb5676d25cb3cb35e21e7edcc4df /tools/perf/scripts/python/intel-pt-events.py | |
| parent | 17f330ce9e434333a98b0fbc7b6d5ddbe0cc6770 (diff) | |
media: i2c: adv7842: Replace mdelay() with msleep() and usleep_range() in adv7842_ddr_ram_test()
adv7842_ddr_ram_test() is never called in atomic context.
It only calls from:
adv7842_ddr_ram_test() <- adv7842_command_ram_test() <- adv7842_ioctl()
adv7842_ddr_ram_test() calls mdelay() to busily wait,
which is not necessary.
mdelay() can be replaced with msleep() and usleep_range().
This is found by a static analysis tool named DCNS written by myself.
Signed-off-by: Jia-Ju Bai <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions