From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755526AbcAHPgW (ORCPT ); Fri, 8 Jan 2016 10:36:22 -0500 Received: from mail-yk0-f182.google.com ([209.85.160.182]:32835 "EHLO mail-yk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754864AbcAHPgU (ORCPT ); Fri, 8 Jan 2016 10:36:20 -0500 Date: Fri, 8 Jan 2016 10:36:18 -0500 From: Tejun Heo To: Daniel Walker Cc: Anil Veliyankara Madam , xe-kernel@external.cisco.com, Shikha Jain , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] drivers: libata-core: Use usleep_range() instead of msleep() for short sleeps (<20 ms) Message-ID: <20160108153618.GO1898@mtj.duckdns.org> References: <1452230332-14926-2-git-send-email-danielwa@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1452230332-14926-2-git-send-email-danielwa@cisco.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2016 at 09:18:52PM -0800, Daniel Walker wrote: > From: Anil Veliyankara Madam > > 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 > Signed-off-by: Shikha Jain Applied to libata/for-4.5. Thanks. -- tejun