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 739C7C3ABD7 for ; Tue, 17 Sep 2024 05:22:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CBD5A6B0088; Tue, 17 Sep 2024 01:22:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C6C976B0089; Tue, 17 Sep 2024 01:22:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B34D06B008A; Tue, 17 Sep 2024 01:22:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 94AF36B0088 for ; Tue, 17 Sep 2024 01:22:13 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1300714011F for ; Tue, 17 Sep 2024 05:22:13 +0000 (UTC) X-FDA: 82573084146.06.4D542C7 Received: from msa.smtpout.orange.fr (smtp-68.smtpout.orange.fr [80.12.242.68]) by imf19.hostedemail.com (Postfix) with ESMTP id 1E3A71A000F for ; Tue, 17 Sep 2024 05:22:09 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=wanadoo.fr header.s=t20230301 header.b=uE7YHFnc; spf=pass (imf19.hostedemail.com: domain of christophe.jaillet@wanadoo.fr designates 80.12.242.68 as permitted sender) smtp.mailfrom=christophe.jaillet@wanadoo.fr; dmarc=pass (policy=quarantine) header.from=wanadoo.fr ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726550420; 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=ox/BUEVjGvecYqicoCV10v4Q9kXMIsRKDm9TgbacwPA=; b=Gwy+S02/mPhWhSx9fbQ9Vi8FqGtFRvlPg8NdCnvbAAar1yn+6unB5cjvMhKvOZmS6ctW/G FqKqtCiA4rQqUjQ2HBwgrcJzxtrqxHgmFBBc8jiwk+yWbePxMrn68VISsSYypwPp7biMJp tiINMGszB/CJ1FkZxXefYBuCvkSR9gk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726550420; a=rsa-sha256; cv=none; b=EJT8Us7VzAX79zQ9X6AjLOp1ckiuaQeKuZIh1KOh8u0CATRe8aon6Z4rjdA56dWr/wmboi dqIuXCcCy4+8L+dsdIa31lyLa6pzZpLJRzySEw19rT77IFqmTMMRFg2pkE2HcXoJTVhUyS ZEM3d9iXys/Bk5YSke1FVsGwF79SflI= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=wanadoo.fr header.s=t20230301 header.b=uE7YHFnc; spf=pass (imf19.hostedemail.com: domain of christophe.jaillet@wanadoo.fr designates 80.12.242.68 as permitted sender) smtp.mailfrom=christophe.jaillet@wanadoo.fr; dmarc=pass (policy=quarantine) header.from=wanadoo.fr Received: from [192.168.1.37] ([90.11.132.44]) by smtp.orange.fr with ESMTPA id qQf2sEuii3ZMyqQf2s4PfP; Tue, 17 Sep 2024 07:22:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1726550528; bh=ox/BUEVjGvecYqicoCV10v4Q9kXMIsRKDm9TgbacwPA=; h=Message-ID:Date:MIME-Version:From:Subject:To; b=uE7YHFncSbIkns75ceMLvKBWR2lLESwDluJGLQhQBCQV5lrcOaRwCaTNTSOfcQpVq HJm+j7e1uOEsx+GUZ7TkF+WOOqssb6mQ20ALFlGIaRf9KYFvSjIxmC0ctChK9RKjkP VHegYqJfxnmpTt+hhya69OXSYxRcdh4NY3Nx4ludydVSWdFFHnCuY48Vq5d4BGuFHH iIBCrqPhkEWoNiBUDqoomBPmojMFvpSGzksiXevYTJzesiUhHvUmNIIDj1if0WR1dK bCJHsDM4ZJQSKYDiq97zSpNKRY9B+XwVjxgT8qhAE/jWfxA728uT22uHSOZu+Yfgmr KFRvY0tmnJyeg== X-ME-Helo: [192.168.1.37] X-ME-Auth: bWFyaW9uLmphaWxsZXRAd2FuYWRvby5mcg== X-ME-Date: Tue, 17 Sep 2024 07:22:08 +0200 X-ME-IP: 90.11.132.44 Message-ID: <6cbedd50-c2d5-4ad7-8133-774eebd9d2f1@wanadoo.fr> Date: Tue, 17 Sep 2024 07:22:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Christophe JAILLET Subject: Re: [PATCH v2 00/15] timers: Cleanup delay/sleep related mess To: Anna-Maria Behnsen 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 References: <20240911-devel-anna-maria-b4-timers-flseep-v2-0-b0d3f33ccfe0@linutronix.de> Content-Language: en-US, fr-FR In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 1E3A71A000F X-Stat-Signature: 76z97idxkg4t1uwkxdeenhq4zwwrudh4 X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1726550529-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D2ITMfMcuVGOiO3uhwCa7QG6konUR3V3TUM9EQiFky6/K7woOM1ifaY1TmzwUVQCMgiSBaXLiIUPl/TQMbb5vq+9kz6SMh2ja0GQiY29KrYgwqKe0Gn3m+1uYJ/CY4L5CWYuiOQiK73mboMLYrxKwEvbAYlE9x/LOsdmhQGu0NZFS1G3+8ycBVVVCA5VNp+uzd0MmFFxEYxGPlB8PbUN09XHezEzwA3jgbRqIbItzfSTCvT0S/zYwXG8sIwfiGm6Q+rRxYOrwYEXLNIkmrM7z/Ve/KvSGV9MI/Db15Od664w68kmS5EbRW+zuLFEhYGdmGh8LTBJyRYyLLLRzdODInwozkHGDvw= 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: Le 16/09/2024 à 22:20, Christophe JAILLET a écrit : > Le 11/09/2024 à 07:13, Anna-Maria Behnsen a écrit : >> Hi, >> >> a question about which sleeping function should be used in >> acpi_os_sleep() >> started a discussion and examination about the existing documentation and >> 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 >> the >> following things: >> >> - Split out all timeout and sleep related functions from hrtimer.c and >> timer.c >>    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 >>    documentation as they reference "Documentation/timers/timers- >> howto.rst" >> >> - Last but not least (as there are no more references): Update the >> outdated >>    documentation and move it into a file with a self explaining file name >> >> The queue is available here and applies on top of tip/timers/core: >> >>    git://git.kernel.org/pub/scm/linux/kernel/git/anna-maria/linux- >> devel.git timers/misc >> >> Signed-off-by: Anna-Maria Behnsen > > Hi, > > not directly related to your serie, but some time ago I sent a patch to > micro-optimize Optimize usleep_range(). (See [1]) > > The idea is that the 2 parameters of usleep_range() are usually > constants and some code reordering could easily let the compiler compute > a few things at compilation time. > > There was consensus on the value of the change (see [2]), but as you are Typo: there was *no* consensus... > touching things here, maybe it makes sense now to save a few cycles at > runtime and a few bytes of code? > > CJ > > [1]: https://lore.kernel.org/all/ > f0361b83a0a0b549f8ec5ab8134905001a6f2509.1659126514.git.christophe.jaillet@wanadoo.fr/ > > [2]: https://lore.kernel.org/ > all/03c2bbe795fe4ddcab66eb852bae3715@AcuMS.aculab.com/ > > > >