diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2017-02-17 11:09:09 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-20 14:26:59 +0200 |
| commit | d3c04901f750ea3d54b3e0e68029e4770c9d25ce (patch) | |
| tree | b85febc8dffe16db89a397e6b7f2289dab0037b8 /tools/perf/scripts/python | |
| parent | 7fc6659b19a26fb2c10e10e56af0f5c3d766a378 (diff) | |
staging: comedi: jr3_pci: cope with jiffies wraparound
commit 8ec04a491825e08068e92bed0bba7821893b6433 upstream.
The timer expiry routine `jr3_pci_poll_dev()` checks for expiry by
checking whether the absolute value of `jiffies` (stored in local
variable `now`) is greater than the expected expiry time in jiffy units.
This will fail when `jiffies` wraps around. Also, it seems to make
sense to handle the expiry one jiffy earlier than the current test. Use
`time_after_eq()` to check for expiry.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
