diff options
author | Luca Ellero <luca.ellero@brickedbrain.com> | 2018-04-18 12:26:26 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-04-22 21:02:17 +0300 |
commit | c3c9a2c4b94f2c92132298b705a6f5f9dc1ccd3f (patch) | |
tree | d9fd6d6e2515cf86f08d97b1aa36b788d848ed49 /Documentation | |
parent | 0e210b542cdb34637b849e181178c2d27fcf0d28 (diff) | |
download | linux-c3c9a2c4b94f2c92132298b705a6f5f9dc1ccd3f.tar.xz |
mtd: dataflash: replace msleep with usleep_range
Since msleep is based on jiffies, this 3 ms sleep becomes actually 20 ms.
Worst of all, since this sleep is used in a loop when writing, a single page
write (256 to 1024 bytes) causes 17 ms extra time.
When writing large files (for example u-boot is usually 512 KB) this delay
adds up to minutes.
See Documentation/timers/timers-howto.txt "Why not msleep for (1ms - 20ms)".
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions