Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp364606ybj; Wed, 6 May 2020 20:13:10 -0700 (PDT) X-Google-Smtp-Source: APiQypIFJ2YL23y5av/u7HoTwSFHE5lw/qCSjU5o1R8ZtOWyc8enOeCJgC4DySqWZKxyJd12Ycmc X-Received: by 2002:aa7:c401:: with SMTP id j1mr9806448edq.31.1588821190017; Wed, 06 May 2020 20:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588821190; cv=none; d=google.com; s=arc-20160816; b=zus4PBeBBi1TB3/7+4n50N9Z9gPjJI/gJOD7lW0HcDwo52dZcGvv5J7Qthl2r/6NkR YdjUkCD24ILoLwHROJCgv14nomxJobjBQAnbpBdzc+1SymWuyLCJtI+XiCjJtO6kvH1D JBnp15hqG8egamFYhprM86RkPaMEu8K2cFT/Gaulslwrf26zsJziscS9UecIALxyNbH1 MrK4BHAdI7g9Uj94jA+xvosQ/M8Kxg2LHxH9IBZXivkoIdrioFMc61zZbPZYCMGkY8jQ fHiqmVITesQgsnwzTn5GhOz2qINC2AJW/z84YRvPdDgKzOhIPI32nRlSs7WNN96CaX6D VloQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=cETNvcjH7Z2iHHwDjZyXO5pVSaGtjTd11a/KtBjqUCo=; b=rrJQ+hMNiWmV5iwZ+ZkcqkNNfhU2wBCaIiX76EAk90EBFfHZ00oWi8wYt7rsfBzgcd A9tgB6twJXpGQtLMIU7D9pcSqYC6jgWuzwsUZfjXRMkzR0WTKeb7ICdiQrZdZ5O3dRVf FyeVyWPvfyRJ+LEiIIgvNa0Og7JHf863zaUuNISz8ogaLltjQ37SskaexUQOhizfaYYI TVW2tvCX0QqaSwPy8m/L3YqD1PujPiD3iN6KCuMiCYalIa9BveDxiIQKPm7Rvw2RjP+K gY1aK2rNXU+aTgf3QYbdGjLy09liOuJY+CQqEbyni06RFZ1rhR8+Lypke2qiYkoPWVto RhCA== 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 r9si1606125edm.519.2020.05.06.20.12.47; Wed, 06 May 2020 20:13:10 -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 S1728910AbgEGAEJ (ORCPT + 99 others); Wed, 6 May 2020 20:04:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726712AbgEGAEI (ORCPT ); Wed, 6 May 2020 20:04:08 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AE57C061A0F; Wed, 6 May 2020 17:04:08 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5D51A12777A7F; Wed, 6 May 2020 17:04:07 -0700 (PDT) Date: Wed, 06 May 2020 17:04:06 -0700 (PDT) Message-Id: <20200506.170406.1373961782517203412.davem@davemloft.net> To: hkallweit1@gmail.com Cc: tglx@linutronix.de, corbet@lwn.net, nic_swsd@realtek.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH net-next 0/2] timer: add fsleep for flexible sleeping From: David Miller In-Reply-To: <8e3c56ca-b43f-3877-0104-a1a279d5a6c5@gmail.com> References: <8e3c56ca-b43f-3877-0104-a1a279d5a6c5@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 06 May 2020 17:04:07 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiner Kallweit Date: Fri, 1 May 2020 23:26:21 +0200 > Sleeping for a certain amount of time requires use of different > functions, depending on the time period. > Documentation/timers/timers-howto.rst explains when to use which > function, and also checkpatch checks for some potentially > problematic cases. > > So let's create a helper that automatically chooses the appropriate > sleep function -> fsleep(), for flexible sleeping > Not sure why such a helper doesn't exist yet, or where the pitfall is, > because it's a quite obvious idea. > > If the delay is a constant, then the compiler should be able to ensure > that the new helper doesn't create overhead. If the delay is not > constant, then the new helper can save some code. > > First user is the r8169 network driver. If nothing speaks against it, > then this series could go through the netdev tree. I haven't seen any objections voiced over the new fsleep helper, so I've applied this series to net-next. Thank you.