Thread (2 messages) 2 messages, 2 authors, 2016-01-08

Re: [PATCH 2/2] drivers: libata-core: Use usleep_range() instead of msleep() for short sleeps (<20 ms)

From: Tejun Heo <tj@kernel.org>
Date: 2016-01-08 15:36:22
Also in: lkml

On Thu, Jan 07, 2016 at 09:18:52PM -0800, Daniel Walker wrote:
From: Anil Veliyankara Madam <redacted>

Since msleep() may sleep longer than intended time for values less
than 20ms, this patch allows the use of usleep_range for waits less
that 20ms. usleep_range is a finer precision implementation of
msleep and is designed to be a drop-in replacement for udelay
where a precise sleep/busy-wait is unnecessary.

More details can be found at http://lkml.org/lkml/2007/8/3/250
and in Documentation/timers/timers-howto.txt.

This change has been done to improve the performace in PIO6 mode
which is used by viking flash.

Cc: xe-kernel@external.cisco.com
Signed-off-by: Anil Veliyankara Madam <redacted>
Signed-off-by: Shikha Jain <redacted>
Applied to libata/for-4.5.

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help