Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752998AbcLFJMQ (ORCPT ); Tue, 6 Dec 2016 04:12:16 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39426 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbcLFJMP (ORCPT ); Tue, 6 Dec 2016 04:12:15 -0500 Date: Tue, 6 Dec 2016 10:12:22 +0100 From: Greg KH To: Shiva Kerdel Cc: lidza.louina@gmail.com, markh@compro.net, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Staging: dgnc: dgnc_*.c: Use usleep_range over udelay to improve coalescing processor wakeups Message-ID: <20161206091222.GA12130@kroah.com> References: <20161206085958.5286-1-shiva@exdev.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161206085958.5286-1-shiva@exdev.nl> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 494 Lines: 12 On Tue, Dec 06, 2016 at 09:59:58AM +0100, Shiva Kerdel wrote: > In most cases, usleep_range is better than udelay, as the precise wakeup > from udelay is unnecessary. But, udelay does something different than usleep, are you sure you should be giving up the cpu at this point in time? Are you sure you are even in a function that is allowed to sleep? I don't think that is the case for all of these at all, sorry, unless you have the hardware to test this change, I can't take it. greg k-h