From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97433CF9C6F for ; Mon, 23 Sep 2024 15:13:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 19E996B009F; Mon, 23 Sep 2024 11:13:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 14DA46B00A0; Mon, 23 Sep 2024 11:13:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F30FB6B00A1; Mon, 23 Sep 2024 11:13:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D302D6B009F for ; Mon, 23 Sep 2024 11:13:01 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8C77E1413EC for ; Mon, 23 Sep 2024 15:13:01 +0000 (UTC) X-FDA: 82596345762.05.8B1EFC9 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf17.hostedemail.com (Postfix) with ESMTP id 9D69340012 for ; Mon, 23 Sep 2024 15:12:59 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=PBfKNMCo; dkim=pass header.d=linutronix.de header.s=2020e header.b="Ncg/SvYz"; spf=pass (imf17.hostedemail.com: domain of anna-maria@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=anna-maria@linutronix.de; dmarc=pass (policy=none) header.from=linutronix.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727104223; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=elBGvOspzH3iGmK1fYd/bVgzyP8I6OQGyztmlAKbFJU=; b=FFfb5XQobmREdynufVIcl8c+ZQ7lTvErxC4wUaPwvC92isqq+ZYbpCldpnbq1dY37vZZhr 5Dyi64g6wFP9tqixdTKEkn5zE2iB8f1MvnnV8+5NXX9WgnG7GrAdyXc72NmKjpnf7msJeK jDiv7V+L4KFFABP2IRzfLJkzKpVQfMQ= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=PBfKNMCo; dkim=pass header.d=linutronix.de header.s=2020e header.b="Ncg/SvYz"; spf=pass (imf17.hostedemail.com: domain of anna-maria@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=anna-maria@linutronix.de; dmarc=pass (policy=none) header.from=linutronix.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727104223; a=rsa-sha256; cv=none; b=8DMfgFN4BveRyycPJgbAq89ewJ3fUzIY+6Ttc8BLr6yLblrBZKJB4JnonMtrGwolMEaE7E yLYrwS+6piBfVYSYxv/uiXrcwGd5Mh3MBRSglC5gvJWfchRbMUUSeBNmInC5f3nQqvVQgQ dQuda9WGgLYlwb8eomrJ79BAiftVpbg= From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1727104377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=elBGvOspzH3iGmK1fYd/bVgzyP8I6OQGyztmlAKbFJU=; b=PBfKNMCoXVgqUMQ+jS8J96N56vpHFkiEIv7N0xlOaDipsFXHcUA3PDP3QEcMOcBBsigKcu ep2rSt1lLmY2DOAonrtcys3ggssiwc2a9tr/YB5alUERWPb6VXbNoKRZigHzcgV4755VTn wYk2+oEYFTBeLTvaEZ2pCcfw4KlNVPS6/D7TaIAiY0D8BB+WIJhmIwmXannp8UhBY3G1mi G3uxSUcypZgacKtqZK/L7EwPqpg1IfqrNDdQvgliRnYaxsk4TTzPhYuwSgE1DT6uKROso/ 5t/eiTVejV5slXI2ZzVLWwCneMD86d/J/xsNeJTYKgO8rphcsMBTmkNWCz+K2w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1727104377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=elBGvOspzH3iGmK1fYd/bVgzyP8I6OQGyztmlAKbFJU=; b=Ncg/SvYzGFuvGC711XUusZn2/nNt5VKfdynTFfYe/Dj4+RDnjWTCN3ea404B/VToJ/4LZq lwKy9a1/BRdLjSCQ== To: Christophe JAILLET Cc: linux-kernel@vger.kernel.org, Len Brown , "Rafael J. Wysocki" , Andrew Morton , damon@lists.linux.dev, linux-mm@kvack.org, SeongJae Park , Arnd Bergmann , linux-arch@vger.kernel.org, Heiner Kallweit , "David S. Miller" , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Liam Girdwood , Mark Brown , Andrew Lunn , Jaroslav Kysela , Takashi Iwai , netdev@vger.kernel.org, linux-sound@vger.kernel.org, Michael Ellerman , Nathan Lynch , linuxppc-dev@lists.ozlabs.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, Frederic Weisbecker , Thomas Gleixner , Jonathan Corbet Subject: Re: [PATCH v2 00/15] timers: Cleanup delay/sleep related mess In-Reply-To: <6cbedd50-c2d5-4ad7-8133-774eebd9d2f1@wanadoo.fr> References: <20240911-devel-anna-maria-b4-timers-flseep-v2-0-b0d3f33ccfe0@linutronix.de> <6cbedd50-c2d5-4ad7-8133-774eebd9d2f1@wanadoo.fr> Date: Mon, 23 Sep 2024 17:12:56 +0200 Message-ID: <87ed5aietj.fsf@somnus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 9D69340012 X-Stat-Signature: jhjgfomdt9mdbq3xdzyqposmf7qxn75d X-Rspam-User: X-HE-Tag: 1727104379-626833 X-HE-Meta: U2FsdGVkX19tuac6FMJ5JFohmfp79xSCqSgzofggF+9m3fK5HWz4r9KXuGNfTM4hC3CdHJyvAcbRHT+XB+L0mExI7z1x/8Wm1DSS+UJnd2Qbhq/VR9TtGE/1BMcG8RW92DZBak6GJX5yutfvsMBViUM0muGpf6SbhCxIwDOymTQaoAFv/pzOnOf+A0Lm/GmIF442Q8VBXsTfORHWO3WE+OCGhpHiS2BKXPyutgp94/NQoJWzcH5Qh17MKPoEnpHxrl3mllhLv9766QZzn4ucJAZNu0w7uo4i5u9yHHXkGdkMdSS1kEKGkmqOVsoY/9TzVJ4YL3kXXVoX595hylQheX87Lk/ZbobzrCD7x9oBYi0MwDyzeFnewOQzl6PNSB9VZJ+JbYBi9XwmPnq2HV/7y26+IMGJFAcIJ/j5dIsIDtTEsO6TZj4nlW9JwUOEC4Cx7XMUAEEdtqNZrZ3fh9YPZkOK7qTlDNvCiDgRFPk9Jmn+TzKiXzKGUZdbbEAAg72014tRp3JiAKb+5Z/1sJTzEq0jqc+jfL3LaiwWKBaRiWoHJE/7eEALer7DAsz/aNlZ+n6cGFIw2T8J+z56QgYHxHbSwIBH6utvmc8PxTHPopSjHG5T5h6U7+mHzb7l8V2qT2oIDWtSw96zLCXsL8o3oESJ/1cl25DOB75TSSxDghsMPGzq0d6p4s+OXZH05V46MrXX1E1qOlXoFQI9vkTNcHiOIqJ7fIL2B2cgqqn+IQUStWilnRI2MS5d5p9DVtasEd+VW948i9TzD3x5ENfQQptLDa8Dzs7tlvLg/utOweGYXg0dELPe3M9l1YdvUGLbB/es1tTbs60m/OrJWbUc4ZDkyO4a67eX9saCTgBX8B7rn1RZSXyC9s/Yr7qErsAK7yHH9Re7VEOQ/N2aq+964ARqLeR7MnM5isfDqqGS8g/AtpMTx58vOTZnC3ucslNM4mrnAY9EmNHNKUVR0HA F2TUbwNt mLarf24Hh0D2wevs/ig0KFvuqiQ44ApqrRTy39uvHS29Fu7oXimaL5SOjBRKV8QiewEq4+VJ5OR3XXO2kGWONkObSifahVHqNyNcWKtpIeT3YwKhq5phBNCzTtWZIfWUMcOMjC4cKgezqccq36Mmbu6z6H0IYSYrBBhtX6yb/FEudtbaKgpNE1+byRg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Christophe JAILLET writes: > Le 16/09/2024 =C3=A0 22:20, Christophe JAILLET a =C3=A9crit=C2=A0: >> Le 11/09/2024 =C3=A0 07:13, Anna-Maria Behnsen a =C3=A9crit=C2=A0: >>> Hi, >>> >>> a question about which sleeping function should be used in=20 >>> acpi_os_sleep() >>> started a discussion and examination about the existing documentation a= nd >>> implementation of functions which insert a sleep/delay. >>> >>> The result of the discussion was, that the documentation is outdated and >>> the implemented fsleep() reflects the outdated documentation but doesn't >>> help to reflect reality which in turns leads to the queue which covers= =20 >>> the >>> following things: >>> >>> - Split out all timeout and sleep related functions from hrtimer.c and= =20 >>> timer.c >>> =C2=A0=C2=A0 into a separate file >>> >>> - Update function descriptions of sleep related functions >>> >>> - Change fsleep() to reflect reality >>> >>> - Rework all comments or users which obviously rely on the outdated >>> =C2=A0=C2=A0 documentation as they reference "Documentation/timers/time= rs-=20 >>> howto.rst" >>> >>> - Last but not least (as there are no more references): Update the=20 >>> outdated >>> =C2=A0=C2=A0 documentation and move it into a file with a self explaini= ng file name >>> >>> The queue is available here and applies on top of tip/timers/core: >>> >>> =C2=A0=C2=A0 git://git.kernel.org/pub/scm/linux/kernel/git/anna-maria/l= inux-=20 >>> devel.git timers/misc >>> >>> Signed-off-by: Anna-Maria Behnsen >>=20 >> Hi, >>=20 >> not directly related to your serie, but some time ago I sent a patch to= =20 >> micro-optimize Optimize usleep_range(). (See [1]) >>=20 >> The idea is that the 2 parameters of usleep_range() are usually=20 >> constants and some code reordering could easily let the compiler compute= =20 >> a few things at compilation time. >>=20 >> There was consensus on the value of the change (see [2]), but as you are= =20 > > Typo: there was *no* consensus... > >> touching things here, maybe it makes sense now to save a few cycles at=20 >> runtime and a few bytes of code? >>=20 Sorry for the late reply. I'll check it and will come back to you. Thanks, Anna-Maria