Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932610AbcLMJo3 (ORCPT ); Tue, 13 Dec 2016 04:44:29 -0500 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:60962 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932511AbcLMJo1 (ORCPT ); Tue, 13 Dec 2016 04:44:27 -0500 Date: Tue, 13 Dec 2016 11:43:47 +0200 From: Sakari Ailus To: Nicholas Mc Guire Cc: Mauro Carvalho Chehab , Sylwester Nawrocki , Laurent Pinchart , Sakari Ailus , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] [media] s5k6aa: set usleep_range greater 0 Message-ID: <20161213094346.GW16630@valkosipuli.retiisi.org.uk> References: <1481594282-12801-1-git-send-email-hofrat@osadl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1481594282-12801-1-git-send-email-hofrat@osadl.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 629 Lines: 19 Hi Nicholas, On Tue, Dec 13, 2016 at 02:58:02AM +0100, Nicholas Mc Guire wrote: > As this is not in atomic context and it does not seem like a critical > timing setting a range of 1ms allows the timer subsystem to optimize > the hrtimer here. I'd suggest not to. These delays are often directly visible to the user in use cases where attention is indeed paid to milliseconds. The same applies to register accesses. An delay of 0 to 100 ?s isn't much as such, but when you multiply that with the number of accesses it begins to add up. -- Kind regards, Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk