From patchwork Fri Nov 15 21:22:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13876903 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 9CAD9D68BDD for ; Fri, 15 Nov 2024 21:22:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 52E8D6B008C; Fri, 15 Nov 2024 16:22:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4DE076B0092; Fri, 15 Nov 2024 16:22:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 309E26B0093; Fri, 15 Nov 2024 16:22:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 0DB5D6B008C for ; Fri, 15 Nov 2024 16:22:47 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C3EFB1C6112 for ; Fri, 15 Nov 2024 21:22:46 +0000 (UTC) X-FDA: 82789601580.07.F20E6D5 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf04.hostedemail.com (Postfix) with ESMTP id 0A53140016 for ; Fri, 15 Nov 2024 21:21:46 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=m+WMW1w9; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf04.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731705700; a=rsa-sha256; cv=none; b=lkjvHpbuxo/cr+afVeUt6WTAiSKyb6OUq8HLUEXXF/8lr/1Ji0W8Wjf0wGkrtgOC+AYvZK nBK5BJhVKA9RGs02eSLFym9SWc7TiNSU4CAgnv90S5/9w42vVplb1zFjiPD7Co9GHGEmgO ZbYEayynzMpED61TI1Gg3F900d+wAD4= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=m+WMW1w9; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf04.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731705700; 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=3U0Zq8t5krsiKxal+ZZuXq1UdnH4Ui7697JSzYEOhjI=; b=ASaPhSs2SYBYra+aaYsm/oZPaTE11Jvm572FT7vIpoz1Dq5wPeP1VFOmExvvawXGDD/1KV iacOkEcuHCrZgitQZGds4qNp9WM1qvRJj94tZn21LNjbIjC9QnEa4DQVbnecOKsnikuVbS SS62ZL0V57wSdUn118g1ns0hqGPmXsU= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 7A864206BCE6; Fri, 15 Nov 2024 13:22:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7A864206BCE6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731705762; bh=3U0Zq8t5krsiKxal+ZZuXq1UdnH4Ui7697JSzYEOhjI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=m+WMW1w9+VciYFFrFZA0mxoPGvOfjrhYGrAVRbiO/Z38FXEyCYrwD61KeWUrbI1co ciJpLEmJVGwRKy8PLvAHCagPIhXXgMkeOPvwDiMFvy84ueU3pKKi0uGJZ6fL3Jn5Hz Ra5qi3c9a5aFZzpjfWBaC+oXk3VwB4O9Td0lHhlo= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:22:33 +0000 Subject: [PATCH 03/22] arm: pxa: Convert timeouts to use secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v1-3-19aadc34941b@linux.microsoft.com> References: <20241115-converge-secs-to-jiffies-v1-0-19aadc34941b@linux.microsoft.com> In-Reply-To: <20241115-converge-secs-to-jiffies-v1-0-19aadc34941b@linux.microsoft.com> To: Pablo Neira Ayuso , Jozsef Kadlecsik , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Julia Lawall , Nicolas Palix , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Ofir Bitton , Oded Gabbay , Lucas De Marchi , =?utf-8?q?Thomas_Hellstr=C3=B6?= =?utf-8?q?m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jeroen de Borst , Praveen Kaligineedi , Shailend Chand , Andrew Lunn , James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Roger_Pau_Mon?= =?utf-8?q?n=C3=A9?= , Jens Axboe , Kalle Valo , Jeff Johnson , Catalin Marinas , Andrew Morton , Jack Wang , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Greg Kroah-Hartman , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Xiubo Li , Ilya Dryomov , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Jaroslav Kysela , Takashi Iwai , Lucas Stach , Russell King , Christian Gmeiner , Louis Peens , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, cocci@inria.fr, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-scsi@vger.kernel.org, xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-mm@kvack.org, linux-bluetooth@vger.kernel.org, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, ceph-devel@vger.kernel.org, live-patching@vger.kernel.org, linux-sound@vger.kernel.org, etnaviv@lists.freedesktop.org, oss-drivers@corigine.com, linuxppc-dev@lists.ozlabs.org, Anna-Maria Behnsen , Easwar Hariharan X-Mailer: b4 0.14.2 X-Rspam-User: X-Rspamd-Queue-Id: 0A53140016 X-Rspamd-Server: rspam11 X-Stat-Signature: 6tmp86rx6xpbb5gk19q55b1woy7jwmpm X-HE-Tag: 1731705706-748057 X-HE-Meta: U2FsdGVkX181FPjXhy1TCx6u0Yy/TtjWmzLajtv4vJ6OfaWyzOsO3R+VKVLmC8OoCswqaPdO7QtruI/nqcM0LU1o0AKQXabdVOX9XnnjEcfAOVQHjm/Wb82ePzPE8//dHvyK12lPHk5FAcre8Xw4aDqwzksf/JaKoac2jyVQc2F70J0COQiHl1WezlqMBvXbKyfJAxEYop2/GbgnY3NXOLAFlSqoSxEk0NsdtHQdLNJcgKMZs8kRREC1BocvRYFWhIFc5Mdankymt8LYtmc4i1EoI3MPkUu/s1bEsp6fHgypd2MNRf9TNz05rdqrzPEIQ0OocPoWmAz4LZc7Ho/t7qykIwIx+t6nbTNBDoQ3OpIWr2ekNFOTjgICZPVvTVsYTfWSLqqz/gzU9Vj/vXLtLywr4VERYOrbjLJ4z8Jvm9TJRiXPf2M3C+S77ziHHHgAc/J4oStNgHD/oVh9iFH/ScRDlpWQ+75ZFLvX3PjD9pZIJe8zpuShod4zHzQx4SBOR1dBayYwkaUQsV1XUFu68gcTVRrJSJOot22Ov3dT2pNYJSg9hfungqfFc61hS38pi6OQ3CXKGhMuUDyiSV2b1rHEPpyYxoFvnudxDINi/YbGAOLJnl+LALZg3Ps+JuYSu/vhGJHGJJAO7GINaqbGcXby1CNcJ7wIV6WXOAUx0UoOQGh7O4fTUezTu9dtpKViZiduEpAY9srACxTXVMrkDlURA/LSxH9YlrkJ16873tUuHSdbJfU/tn2zJ7x2uflSkBJNJorNjpTogaOuAkjdySM1NnxiuzoMQZdx3JBP656W2sG58oEMIhOvu1aqIqX6JU+8pbmYbg1quMHoAM6720tyZeWooRyCiegcyGsQwK2ywzPT+Aks1SfP8JCGPML8jCZPzfkADNnbMXZ85nO/EsKN6IRhU+Qt0MIT2eVPhAxViPZ1+ycMBHByS3IctigZ+BBgtJ9MWtc/E52ygfo bq2euNmC vr0eCCe/Qy+8Vf3eZVHA9RehN+99Dz+/Krzt8QULV+iLQ7q9+geFoa39qkrBjJZJOyIcdednqtq78AUB5pjZU+X6kt8Pt+4V8EvfUL8j5cdJNMguV1/a31+JKxgH0Aw93XaXrmlWH5MrWNEq9CFaQK8eU8rniwIRLzKBSv9TaMhQqZk2EHqAV+P1lQpiZlglRGPexqjEx/8wwadU92Y946jnKpKY5bqCVM1xCQfZg3BYZRTSrtubH/2nsOKhNN26GFyU8RmHIiaBxOiC7bHvvYoycYNxEkwbh0bsvlIdNUnS+r0HiAKHqfQyQLua6FOMceTYxBcNuHayO9WYZati6jbs8OZU5YfDQ9X8ijbFr+L21S/QS9FLt4iCR7vLqG8b/BYMChyaTaQP7BqJ46spnvw2Q1ja69QeL2u+EnTK8/YSxVBJeMtyhrWOFgg== 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: Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- arch/arm/mach-pxa/sharpsl_pm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c index 72fa2e3fd35318e5a63c121ed7990a56a56b134c..bbbd06bc79bbb94fb258562e5a382acaf3c277b3 100644 --- a/arch/arm/mach-pxa/sharpsl_pm.c +++ b/arch/arm/mach-pxa/sharpsl_pm.c @@ -31,9 +31,9 @@ /* * Constants */ -#define SHARPSL_CHARGE_ON_TIME_INTERVAL (msecs_to_jiffies(1*60*1000)) /* 1 min */ -#define SHARPSL_CHARGE_FINISH_TIME (msecs_to_jiffies(10*60*1000)) /* 10 min */ -#define SHARPSL_BATCHK_TIME (msecs_to_jiffies(15*1000)) /* 15 sec */ +#define SHARPSL_CHARGE_ON_TIME_INTERVAL (secs_to_jiffies(60)) /* 1 min */ +#define SHARPSL_CHARGE_FINISH_TIME (secs_to_jiffies(10*60)) /* 10 min */ +#define SHARPSL_BATCHK_TIME (secs_to_jiffies(15)) /* 15 sec */ #define SHARPSL_BATCHK_TIME_SUSPEND (60*10) /* 10 min */ #define SHARPSL_WAIT_CO_TIME 15 /* 15 sec */