diff options
author | Andrew Ruder <andrew.ruder@elecsyscorp.com> | 2014-06-04 17:28:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-05 15:12:11 -0700 |
commit | 582379839bbdb76f2f0ad956a39f920cfd84fcea (patch) | |
tree | 8d3fb538f4c94b13d9dad30d99da4022e6fdbdfa /drivers/thermal | |
parent | dm9000: handle initial link status (diff) | |
download | linux-dev-582379839bbdb76f2f0ad956a39f920cfd84fcea.tar.xz linux-dev-582379839bbdb76f2f0ad956a39f920cfd84fcea.zip |
dm9000: avoid sleeping in dm9000_timeout callback
On the DM9000B, dm9000_msleep() is called during the dm9000_timeout()
routine. Since dm9000_timeout() holds the main spinlock through the
entire routine, mdelay() needs to be used rather than msleep().
Furthermore, the mutex_lock()/mutex_unlock() should be avoided so as to
not sleep with spinlocks held.
Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions