]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: wilc1000: give usleep_range a range
authorNicholas Mc Guire <hofrat@osadl.org>
Thu, 11 Apr 2019 03:31:21 +0000 (05:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Apr 2019 11:15:54 +0000 (13:15 +0200)
commitc901556a43d282f6666e5fb8fbd3066dcb17c907
treebeb139e57bc9e8a4bc826588f5f4f28f80961045
parentae26aa844679cdf660e12c7055f958cb90889eb6
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>
drivers/staging/wilc1000/wilc_wlan.c