Message ID | 20241014-devel-anna-maria-b4-timers-flseep-v3-8-dc8b907cb62f@linutronix.de (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 8EEE4CFC501 for <linux-mm@archiver.kernel.org>; Mon, 14 Oct 2024 08:22:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0C8A26B0085; Mon, 14 Oct 2024 04:22:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0525F6B0088; Mon, 14 Oct 2024 04:22:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DBF9C6B0089; Mon, 14 Oct 2024 04:22:50 -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 BBD7B6B0085 for <linux-mm@kvack.org>; Mon, 14 Oct 2024 04:22:50 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 8D4ADA0C64 for <linux-mm@kvack.org>; Mon, 14 Oct 2024 08:22:36 +0000 (UTC) X-FDA: 82671516774.16.DF0E0A8 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf22.hostedemail.com (Postfix) with ESMTP id B7437C000B for <linux-mm@kvack.org>; Mon, 14 Oct 2024 08:22:41 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b="B/aSrdnG"; dkim=pass header.d=linutronix.de header.s=2020e header.b=S6JiLyI3; spf=pass (imf22.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=1728894097; 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=qOaH71wwpXdQZek5RpUCzVvDQCRluMekHdCjKOEhMjY=; b=HlwUgFEda3vWAP2aSSDpYqAyz+tIVykz4uyJV6llbiWEqZF3jKNOY95Y5pP8fWuDNsjtCq 6IVsl6U8sZYdzOiAugnHdDXQn0rYgloHvULRp1D+uMugmcn5Fbq5U650vICavzoZkl4eOz EZUHHnJA1YTJ3pB2K5Z6gS2T7BUqqTo= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b="B/aSrdnG"; dkim=pass header.d=linutronix.de header.s=2020e header.b=S6JiLyI3; spf=pass (imf22.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=1728894097; a=rsa-sha256; cv=none; b=XjclVhjzeAEV6EstQ5uVIH5cKRzGPWBlOSCqhxAmAGbPJNIK6Fk/eicCA7Sz6vgP5wjX2a IHpEe5c0uMcHH//CXvqE5GBf+9Qy7sgRopJVOvx5vJIdlKVA2ySn9I7Kp75d6O/fB8I570 HQZrmB6XCb8fr+hVIkvE6b8HRTzLcEA= From: Anna-Maria Behnsen <anna-maria@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1728894167; 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=qOaH71wwpXdQZek5RpUCzVvDQCRluMekHdCjKOEhMjY=; b=B/aSrdnG1hdrhqCf9Doxt53XdUEPd/DsqfCqfEtXm+sXaR4YxaOBvD/4G4k6gEJsLkPqNI vHi/uKunKriXr18pR5F29McrnstoIfhveWZg3Q9z3Lafph8GjeECPp6qWNwz+orsvPcojr Snx7csQhHtS1I/k/YSb+dPc2+vClJeJ/Z/M94B8lycT7WPEvSY3DnwB5ND44BUhPWtm7fc 5SbflHJua9/3ny+8zX2+wvL8ioeRogGZNozMCMjJDw9WJfWDlsKzeLlmGzBXOqcHiuQjDw Sh4zc4d6RRhGSRWRewxwX+yWhSDZeoxCFlye9hXYxSs2XZskPwA3I1nondd8+w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1728894167; 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=qOaH71wwpXdQZek5RpUCzVvDQCRluMekHdCjKOEhMjY=; b=S6JiLyI3D4+gyIiCjKrWzIAm4jv71/fdJjVfoPCojjq13xGDDrzi/OlrF6cyHiZaMmx4Mf 8Fn1cpiVDmJEzqBQ== Date: Mon, 14 Oct 2024 10:22:25 +0200 Subject: [PATCH v3 08/16] mm/damon/core: Use generic upper bound recommondation for usleep_range() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241014-devel-anna-maria-b4-timers-flseep-v3-8-dc8b907cb62f@linutronix.de> References: <20241014-devel-anna-maria-b4-timers-flseep-v3-0-dc8b907cb62f@linutronix.de> In-Reply-To: <20241014-devel-anna-maria-b4-timers-flseep-v3-0-dc8b907cb62f@linutronix.de> To: Frederic Weisbecker <frederic@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Jonathan Corbet <corbet@lwn.net> Cc: linux-kernel@vger.kernel.org, Len Brown <len.brown@intel.com>, "Rafael J. Wysocki" <rafael@kernel.org>, rust-for-linux@vger.kernel.org, Alice Ryhl <aliceryhl@google.com>, FUJITA Tomonori <fujita.tomonori@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Anna-Maria Behnsen <anna-maria@linutronix.de>, Miguel Ojeda <ojeda@kernel.org>, SeongJae Park <sj@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, damon@lists.linux.dev, linux-mm@kvack.org X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: B7437C000B X-Stat-Signature: 7jfort91yocoob7hmntexog3wzdietkx X-HE-Tag: 1728894161-419829 X-HE-Meta: U2FsdGVkX1860ZlE7bXeOn81dR4c1UU8Ys291u8ZPbfWAF7HdkdpD84CHUP6z92RI3yB1GyZIUXoIGv0JrcQ5pskOt5f9UL5cGhDXjta5zC3oD7Uy6okhKXEU7/aYRN8dVyodW5qBFaKeVl/PiPg2EjcYP342RteBeZF08BZZOupzoCRRSGkZrfcJ4zAdzPfco02Guzeu/YlTDLvYnt23nLANrEcKGHY2iOsEOmFk0mPvADfmjeCwY49OKcNAdHC4JuOw/ex9hIs6xvJLZLwMx/QRxyKYC7eKZ8A6e/8kFasSBIz70ACJO0roV4zjsJQ9Dc1cqPFt2Asq8JZnGklONpuxMBCoZTOCMcfgk35VGMoksDCfd31rv74HF4eDuTyJfnbfWKQ6opGubzqKQY2eXb8BCM44YZHTHtebDJO890YrOnyOTd0x2HG9k7nor714HvtI38Wq6c376OL8kf9Go8tbYYcLFVBUGXsD4qJaYgglrvupsnQhpUfg/vZQq0xBkp0rQE5QV0L6yT+6FaRCbBOTUkmg7zp09ft1EfAEgIng0sjphDD4tWq6JrLGYVL1lJ/G+HSBgjKmpCddulBkEUU8coJh+QfEyWP+4/VmPFzE0NcjQOnVOCyCoZsVeSKwwYJL7JEhN/E+pKNry2eke2LDWf/znXI+H2NAgWR2wC46C+UXZyGziRdStN0bcrTAvQ8yfhgVWVRlJ1ExYElzAISklELcqtDd1QGKtHQIKSs+UakWs7MiCryYEEtLtgTK4n2EnMqhL/Ug7SOG/nynqcc1wUCglBYbraQJAlSdpo1Hfrlj1AgYv6YOzUihYa8CThjENA4PaIcgqEfDEv6gkQwEkP+a6bGKaN3Pzvo+eT+Pgl+pSXPZnjXkzvrofll6rYssuhus4xJPb5hVeZzPTg/6njXgapV1AJlHfCJhuF2N6lt/rwyUA9UzlHmQnnIA618vmFDDVzD7+QsIyd OR0cssH/ t5T3Q3ab0hqR3rWgOYQacp/RlukViX9J5pelMqTE6YEe/i1ucTUIfsyWDJRScmUTKEKQBVfgVABAlcPUIoBIi734hYH30V8Ov8UUco7SVjHjgcUQVKe0duMSGf4waky+P41Q3W2R2WcPX0lUou5ZdZBPs7IFEt4YtJe8xIpeubABBO9vVdDIDvknh8jy0uZhyxuZPI9y1fkjN4uS3oYedqAegrfY8vMrSGuJ7ekEf/ahuJTQHOVNIbVJbDy+QnA0MG0crdHP9O3EBlBU/4m3U8gs3hYKxAARrFLNMXQV/bF4IRJyEN3XXPEJREah3go7y4DGmhk/hB7qd8cEyAMJ3rrf/3c/GC9hHpQZrcPqdNSNAb+wGr1IB4zAUb+/KyxQrsrGxDxvZxVAmqvFxkaFLHauX++SFTaKhKD/P 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
timers: Cleanup delay/sleep related mess
|
expand
|
diff --git a/mm/damon/core.c b/mm/damon/core.c index c725c78b43f0..79efd8089d6c 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -1892,8 +1892,7 @@ static unsigned long damos_wmark_wait_us(struct damos *scheme) static void kdamond_usleep(unsigned long usecs) { - /* See Documentation/timers/timers-howto.rst for the thresholds */ - if (usecs > 20 * USEC_PER_MSEC) + if (usecs >= USLEEP_RANGE_UPPER_BOUND) schedule_timeout_idle(usecs_to_jiffies(usecs)); else usleep_range_idle(usecs, usecs + 1);