Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp958315pxu; Fri, 11 Dec 2020 20:16:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8UPswCvMA1oVvQTWUZT+hssADNBjtzNfO0ppjpJjjrLsTItn0LA2Y0G7FW5sD2UINXUS0 X-Received: by 2002:aa7:d64d:: with SMTP id v13mr15167734edr.196.1607746576519; Fri, 11 Dec 2020 20:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607746576; cv=none; d=google.com; s=arc-20160816; b=wCUDFg/HagXU744EINy3dGwghtNJ0mdZhHMg0xoFam7TpEn+3jAP+8OHgIRhSKjxVo CBCeGmyNc6vIqH69bxNp8upBCT0BgidsNHlAZzRNFeER54bMUoaIMf+kltLXYCm4HlGK wE8ci4XBeDaK3qsK8XiL6k/UE9nxki3OSM8SXMHT21Fim5jXmw9wKBdHRa/U3GoEVR80 0/lplZyxcmUKsHc96+r0McvpsWdmVdRQh0ukjJ9VqXIoeY2gd0CouYyyeryvlgl6bqFr 19gotXgpaYeR6+wM1RElUCeZJjskTbN+t9HnYoJZzXzV7sJve5mf9n0tPy5K9IppSTm/ WZBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2SZYQKJJgkoxOg6LyYgvMaHB/Zi8IDN773NUaG24gXQ=; b=GGF4B+g91NWyyKTl7F9BWVQMyy7CXlW9Db8ZKO4e14x58mLMCzphgG6R8k+YMESOl3 BD3ij82kCWTMVx9cVEaZF1EBY63U1598o4fsvc6bw14b5pIKSsgbcMmthTyrAkzJDIkj yS6Ds/NLS9MtdovbxUiqy8dG8ZVevJIy8xdU5JDDnBkSsHTWfC+//xGAF+6d7FyQdWys dGYcQz1U1YmjjnkjRJjh7flWld+8EWBTRIxb8vXR3N6ZpJ4MewQimHAyiIYYDEPRsAbp oz1/G2iHtI8h6GLpN9hffWrn+bQGRSIuMn4MQuHc2UHKjzbF0RUe4stprHuPzdkx8erc ujww== 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 q16si6088075ejy.572.2020.12.11.20.15.53; Fri, 11 Dec 2020 20:16:16 -0800 (PST) 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 S1727889AbgLKH3z (ORCPT + 99 others); Fri, 11 Dec 2020 02:29:55 -0500 Received: from isilmar-4.linta.de ([136.243.71.142]:59136 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730993AbgLKH3d (ORCPT ); Fri, 11 Dec 2020 02:29:33 -0500 X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES Received: from light.dominikbrodowski.net (brodo.linta [10.2.0.102]) by isilmar-4.linta.de (Postfix) with ESMTPSA id 96659201130; Fri, 11 Dec 2020 07:28:50 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id ACF52204F2; Fri, 11 Dec 2020 08:28:32 +0100 (CET) Date: Fri, 11 Dec 2020 08:28:32 +0100 From: Dominik Brodowski To: Yejune Deng Cc: axboe@kernel.dk, hare@suse.de, jack@suse.cz, gregkh@linuxfoundation.org, tj@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] init: fix msleep() is not accurate Message-ID: References: <1607657052-17608-1-git-send-email-yejune.deng@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1607657052-17608-1-git-send-email-yejune.deng@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Fri, Dec 11, 2020 at 11:24:12AM +0800 schrieb Yejune Deng: > See Documentation/timers/timers-howto.rst, msleep() is not > for (1ms - 20ms),use usleep_range() instead. While technically correct, this branch is only taken if the "rootwait" kernel parameter is passed -- and as the kernel is looping here, it does not really hurt if the msleep(5) takes a bit longer than advertised. Thanks, Dominik