From nobody Fri Jun 19 08:35:10 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3519FC433FE for ; Wed, 6 Apr 2022 12:56:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231866AbiDFM5R (ORCPT ); Wed, 6 Apr 2022 08:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbiDFM4o (ORCPT ); Wed, 6 Apr 2022 08:56:44 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 924DE28A00C for ; Wed, 6 Apr 2022 01:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=ELstpb9CahSQ9h tMRBNgYlMBQaWFg7ebfWxfcaQnqjA=; b=3rhKnA424MyzX076mKTW3BMl5iJWuQ UcmQ1hXG6H1PbybF++LCGjk+vmKSJ/4RbKBQAVzsXUtHzaNgw143J5Vpn/WRxHPW TcaB/pJc2/nLT2HT6Ps2VcbxbXcbsEnjloW7g62Oh5k2DVRoe8hS0ZoguMMyd6k/ PMrvz8RHDjKXs= Received: (qmail 2651250 invoked from network); 6 Apr 2022 10:56:48 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 6 Apr 2022 10:56:48 +0200 X-UD-Smtp-Session: l3s3148p1@E16iivjbjpQgAQnoAH8rAO83AtqmbDBd From: Wolfram Sang To: linux-kernel@vger.kernel.org, Heiner Kallweit Cc: linux-renesas-soc@vger.kernel.org, Greg KH , David Miller , Wolfram Sang Subject: [PATCH 1/1] delay: rename fsleep to usleep_autoyield Date: Wed, 6 Apr 2022 10:56:43 +0200 Message-Id: <20220406085643.33100-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220406085643.33100-1-wsa+renesas@sang-engineering.com> References: <20220406085643.33100-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Rename fsleep because the current name breaks the pattern of the first letter being a unit (and it is not 'femto' here). Let's add the proper unit again and add a suffix to the function which will hopefully be a bit more explanatory. To give some time until all users are converted, introduce a fallback define which will go away later. Signed-off-by: Wolfram Sang --- Documentation/timers/timers-howto.rst | 2 +- include/linux/delay.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/timers/timers-howto.rst b/Documentation/timers/t= imers-howto.rst index 5c169e3d29a8..d0a57ca5e18e 100644 --- a/Documentation/timers/timers-howto.rst +++ b/Documentation/timers/timers-howto.rst @@ -112,4 +112,4 @@ NON-ATOMIC CONTEXT: you know you have a need for the interruptible variant. =20 FLEXIBLE SLEEPING (any delay, uninterruptible) - * Use fsleep + * Use usleep_autoyield diff --git a/include/linux/delay.h b/include/linux/delay.h index 039e7e0c7378..d0919f52fec8 100644 --- a/include/linux/delay.h +++ b/include/linux/delay.h @@ -78,7 +78,7 @@ static inline void ssleep(unsigned int seconds) } =20 /* see Documentation/timers/timers-howto.rst for the thresholds */ -static inline void fsleep(unsigned long usecs) +static inline void usleep_autoyield(unsigned long usecs) { if (usecs <=3D 10) udelay(usecs); @@ -88,4 +88,6 @@ static inline void fsleep(unsigned long usecs) msleep(DIV_ROUND_UP(usecs, 1000)); } =20 +#define fsleep usleep_autoyield + #endif /* defined(_LINUX_DELAY_H) */ --=20 2.30.2