Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp249595pxj; Fri, 28 May 2021 03:07:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDl6zuvjvhBTvv8WZEAn+ECE5+27TFrrodJNr4Hm5Mc0eEkE7+U1i0V6JsbD0M66pCBthj X-Received: by 2002:a17:906:af05:: with SMTP id lx5mr5877359ejb.549.1622196467904; Fri, 28 May 2021 03:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622196467; cv=none; d=google.com; s=arc-20160816; b=dZJ+P5Wnx/ZoE2n7Z77LF+I4PHA5l11SkAk10AXU1ize8BgcQss7xCc4C3/61gajhG n9OP+ZoU/X+3TgHUPW3BcsNeKjBJ6FhPXhS6tD6L7nQfcTJI1QIH5ElTzc71Qifl82WC OZPI17gke0wSkbRo0rTfBoJ4HhN/rrA+6aYsrTmxjnCALf8FA0r0Hv1s8tY+fO360t4o cFJSlTU00IFzdpR8/V27FDoSi5eSqop5eMFbMWacy6clXPyZjzzoUn0fgGRaJaBhrSgK naDdZfh8lWdjooEPJRBopm76ONopMlbkcAh98R1a96CstdislgHfLgm+xGDEa4If653+ BvQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=QeqhUkpAYn0pNLEiK7EdCbjwDpcPpcJk/ZbY09vyV/Q=; b=nZpz4d+4ziK4DpKX1el9CXNB44frdG6pd/HRu+tHuwBeWlHMGwjv9UyU1y3JSNyKLB FqH+LC49IiiyBh76j5DiSi+FEMaD1yQlPGN88YkVy3De/96+HCnFDoGqW+IbQUYIIIrR REZXsIrRczgsuqIueimvuZVEMtmCWUoYAYGuj8bju5i2MLuDMwvYrFZqxcgA1RGrQS3p evfpldtU4a2W+9rt9j/IdiB6FTd/J2h1yWs6bXn0LfdML0auIF0YgicBqfZAFzR/I4no ptz04/mVTH4ejO7DJgcziNWUT7edwjG5MN3L2Xo+qyumT8wTfdxEjz04UXm/VMbpA/Mm gxlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si4513198ejy.37.2021.05.28.03.07.15; Fri, 28 May 2021 03:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236417AbhE1KGR (ORCPT + 99 others); Fri, 28 May 2021 06:06:17 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:33412 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236404AbhE1KGQ (ORCPT ); Fri, 28 May 2021 06:06:16 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id CB17C1C0B76; Fri, 28 May 2021 12:04:40 +0200 (CEST) Date: Fri, 28 May 2021 12:04:40 +0200 From: Pavel Machek To: Andy Shevchenko Cc: Andy Shevchenko , Amireddy Mallikarjuna reddy , Linus Walleij , Marek =?iso-8859-1?Q?Beh=FAn?= , Abanoub Sameh , Dan Murphy , Krzysztof Kozlowski , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 03/28] leds: el15203000: Give better margin for usleep_range() Message-ID: <20210528100440.GE2209@amd> References: <20210510095045.3299382-1-andy.shevchenko@gmail.com> <20210510095045.3299382-4-andy.shevchenko@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Uwl7UQhJk99r8jnw" Content-Disposition: inline In-Reply-To: <20210510095045.3299382-4-andy.shevchenko@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Uwl7UQhJk99r8jnw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2021-05-10 12:50:20, Andy Shevchenko wrote: > 1 microsecond with 20 millisecond parameter is too low margin for > usleep_range(). Give 100 to make scheduler happier. >=20 > While at it, fix indentation in cases where EL_FW_DELAY_USEC is in use. > In the loop, move it to the end to avoid a conditional. Its not like unhappy schedulers are problem... Pavel =09 --=20 http://www.livejournal.com/~pavelmachek --Uwl7UQhJk99r8jnw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmCwwDgACgkQMOfwapXb+vL+TgCbBnOTrS1VboW4BCT9gM6QpTH2 gEwAoLD8X4eSoXjnvQ0qwo32uTk5rzaK =W7we -----END PGP SIGNATURE----- --Uwl7UQhJk99r8jnw--