diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2019-04-11 05:31:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-16 13:15:54 +0200 |
commit | c901556a43d282f6666e5fb8fbd3066dcb17c907 (patch) | |
tree | beb139e57bc9e8a4bc826588f5f4f28f80961045 /lib/rational.c | |
parent | ae26aa844679cdf660e12c7055f958cb90889eb6 (diff) |
staging: wilc1000: give usleep_range a range
usleep_range() is called in non-atomic context so there is little point
in setting min==max as the jitter of hrtimer is determined by interruptions
anyway. usleep_range can only perform the intended coalescence if some
room for placing the hrtimer is provided. Given the range of milliseconds
the delay will be 2+ anyway - so make it 2-2.5 ms which gives hrtimers
space to optimize without negatively impacting performance.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/rational.c')
0 files changed, 0 insertions, 0 deletions