Repository navigation
Commit 9c552e1
DAC960: remove sleep_on usage
sleep_on and its variants are going away. The use of sleep_on() in
DAC960_V2_ExecuteUserCommand seems to be bogus because the command
by the time we get there, the command has completed already and
we just enter the timeout. Based on this interpretation, I concluded
that we can replace it with a simple msleep(1000) and rearrange the
code around it slightly.
The interruptible_sleep_on_timeout in DAC960_gam_ioctl seems equivalent
to the race-free version using wait_event_interruptible_timeout.
I left the driver to return -EINTR rather than -ERESTARTSYS to preserve
the timeout behavior.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@fb.com>1 parent c94efe3 commit 9c552e1
1 file changed
Lines changed: 16 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6411 | 6411 | | |
6412 | 6412 | | |
6413 | 6413 | | |
6414 | | - | |
6415 | | - | |
6416 | | - | |
6417 | | - | |
6418 | | - | |
6419 | | - | |
| 6414 | + | |
| 6415 | + | |
| 6416 | + | |
| 6417 | + | |
| 6418 | + | |
| 6419 | + | |
6420 | 6420 | | |
6421 | 6421 | | |
6422 | 6422 | | |
| |||
7035 | 7035 | | |
7036 | 7036 | | |
7037 | 7037 | | |
7038 | | - | |
7039 | | - | |
7040 | | - | |
7041 | | - | |
7042 | | - | |
7043 | | - | |
7044 | | - | |
7045 | | - | |
7046 | | - | |
7047 | | - | |
7048 | | - | |
7049 | | - | |
| 7038 | + | |
| 7039 | + | |
| 7040 | + | |
| 7041 | + | |
| 7042 | + | |
| 7043 | + | |
| 7044 | + | |
| 7045 | + | |
| 7046 | + | |
| 7047 | + | |
7050 | 7048 | | |
7051 | 7049 | | |
7052 | 7050 | | |
| |||
0 commit comments