Commit 5849e2d
pibridge-serdev: fix bad cycle times
Use wait_event_hrtimeout() instead of wait_event_timeout() to wait for more
data. The latter uses jiffies to specify the timeout which requires a
minimum of 2 jiffies (which equals 20 msecs) to avoid a timeout before the
the IO timeout interval used by the pibridge module (10 msecs) have passed.
With wait_event_hrtimeout() it is possible to specify the exact 10 msecs
as a timeout so we do not have to wait up to 20 msecs in case that no more
data arrives.
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>1 parent ec5400f commit 5849e2d
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
0 commit comments