summaryrefslogtreecommitdiffstats
path: root/block/bsg.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-05-08 11:52:10 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2020-05-28 11:22:14 +0200
commiteadb7897652d5bf9fbab393b3774598a04846aff (patch)
tree1a699f7fccf72c0c3dbd4b5265bbabc04ed907f2 /block/bsg.c
parent85a3f77c1be5ee143615e47f98f653d65806b8ae (diff)
downloadlinux-eadb7897652d5bf9fbab393b3774598a04846aff.tar.gz
linux-eadb7897652d5bf9fbab393b3774598a04846aff.tar.bz2
linux-eadb7897652d5bf9fbab393b3774598a04846aff.zip
mmc: sdricoh_cs: Throttle polling rate for data transfers
Rather than to poll in a busy-loop, let's convert into using read_poll_timeout() and insert a small delay between each polling attempts. In particular, this avoids hogging the CPU. Additionally, to convert to read_poll_timeout() we also need to switch from using a specific number of polling attempts, into a specific timeout in us instead. The previous 100000 attempts, is translated into a total timeout of total 1s, as that seemed like reasonable value to pick. Cc: Sascha Sommer <saschasommer@freenet.de> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://lore.kernel.org/r/20200508095210.14123-1-ulf.hansson@linaro.org
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions