Message ID | 20241115-converge-secs-to-jiffies-v2-3-911fb7595e79@linux.microsoft.com (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 5BB0BD68BDD for <linux-mm@archiver.kernel.org>; Fri, 15 Nov 2024 21:26:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B71088D0006; Fri, 15 Nov 2024 16:26:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AFA978D0001; Fri, 15 Nov 2024 16:26:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8D6C98D0006; Fri, 15 Nov 2024 16:26:45 -0500 (EST) 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 691C08D0001 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 16:26:45 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 2BADE1A0460 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 21:26:45 +0000 (UTC) X-FDA: 82789613466.02.B1C380E Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf01.hostedemail.com (Postfix) with ESMTP id CFE3C40004 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 21:26:07 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=pxyipjBG; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf01.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=1731705823; a=rsa-sha256; cv=none; b=rMv17nFoa+P682vQMfNaiO/d1SPN600z2vZ3c4Q0AIYTOMpfGXqo6b+5UxIViMnEsuZBi2 lf8bViQjUQIopB/Vkc/JZ54zmvkqND/8go3mV9OY9XlLMrjhlgUWYRzDeeoHAgEr2y13gW RZp7112F8qYXRbBE8vgBiuavC2up6IE= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=pxyipjBG; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf01.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=1731705823; 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=HGxj0176W3nlS+i/vJJAetr4BFTdt+nrzfTXLxdfxywbpuNORTXL56ex/nGgaT2HxCrLep HKZt4G8TPRNzXoZ6GA/xSyRVSblBZ9jpqe7zmxGS4Hyxnrl5ozQOtwF3+0xeFCsl1GoVJQ xtN6HfQ4NaXSm5iduH73uXhq8ek3Mok= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 9987D206BCF6; Fri, 15 Nov 2024 13:26:41 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9987D206BCF6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706001; bh=3U0Zq8t5krsiKxal+ZZuXq1UdnH4Ui7697JSzYEOhjI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=pxyipjBG4pPbUUX4B02FM3/ZsXqd5TTFM1LiraDNsXkdoszGq2MjH9IQsJybMvID+ 4YKAHyn2fCEWP25moqNhPglaJ0cda8qqzueRkUNy6p2auJAmaCiugYo3dL3clU9ruD egDpjyzKcS59GHsuj7I2I/nCPTxfw5Z4JYIS26Qg= From: Easwar Hariharan <eahariha@linux.microsoft.com> Date: Fri, 15 Nov 2024 21:26:20 +0000 Subject: [PATCH v2 03/21] arm: pxa: Convert timeouts to use secs_to_jiffies() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241115-converge-secs-to-jiffies-v2-3-911fb7595e79@linux.microsoft.com> References: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> In-Reply-To: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> To: Pablo Neira Ayuso <pablo@netfilter.org>, Jozsef Kadlecsik <kadlec@netfilter.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Julia Lawall <Julia.Lawall@inria.fr>, Nicolas Palix <nicolas.palix@imag.fr>, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr>, Russell King <linux@armlinux.org.uk>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, Ofir Bitton <obitton@habana.ai>, Oded Gabbay <ogabbay@kernel.org>, Lucas De Marchi <lucas.demarchi@intel.com>, =?utf-8?q?Thomas_Hellstr=C3=B6?= =?utf-8?q?m?= <thomas.hellstrom@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>, Jeroen de Borst <jeroendb@google.com>, Praveen Kaligineedi <pkaligineedi@google.com>, Shailend Chand <shailend@google.com>, Andrew Lunn <andrew+netdev@lunn.ch>, James Smart <james.smart@broadcom.com>, Dick Kennedy <dick.kennedy@broadcom.com>, "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, =?utf-8?q?Roger_Pau_Mon?= =?utf-8?q?n=C3=A9?= <roger.pau@citrix.com>, Jens Axboe <axboe@kernel.dk>, Kalle Valo <kvalo@kernel.org>, Jeff Johnson <jjohnson@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Andrew Morton <akpm@linux-foundation.org>, Jack Wang <jinpu.wang@cloud.ionos.com>, Marcel Holtmann <marcel@holtmann.org>, Johan Hedberg <johan.hedberg@gmail.com>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Florian Fainelli <florian.fainelli@broadcom.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Xiubo Li <xiubli@redhat.com>, Ilya Dryomov <idryomov@gmail.com>, Josh Poimboeuf <jpoimboe@kernel.org>, Jiri Kosina <jikos@kernel.org>, Miroslav Benes <mbenes@suse.cz>, Petr Mladek <pmladek@suse.com>, Joe Lawrence <joe.lawrence@redhat.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Lucas Stach <l.stach@pengutronix.de>, Russell King <linux+etnaviv@armlinux.org.uk>, Christian Gmeiner <christian.gmeiner@gmail.com>, Louis Peens <louis.peens@corigine.com>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, Naveen N Rao <naveen@kernel.org>, Madhavan Srinivasan <maddy@linux.ibm.com> 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 <anna-maria@linutronix.de>, Easwar Hariharan <eahariha@linux.microsoft.com> X-Mailer: b4 0.14.2 X-Stat-Signature: eaxf3ahcpns4tahgyzaoqbomkdyusbum X-Rspamd-Queue-Id: CFE3C40004 X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1731705967-444792 X-HE-Meta: U2FsdGVkX1/qbPF//pbB11RCPFzAaeDqWdzF09SntfJH+CREF9IHx/YLyrU4rM1sP5WZK1xGFovoabVxv4Hbpmrg+BB0OxFONXL7Ql4CKV0JaTsNGukFP1lVlMBhBy9OlMFN/PPCNAD66eI3y51onFTFlUVgO4hnbVC5ERdJzX9swYo1ZajNpBfzQDf78xS3oLKyB9t/xcASSZX5IjBNxMAbTJRj5N9OhmysDvjoIFNmQf/n5vlr+LYmMtc51wzESzBjPs/sfacwtUOLUIXk7aQghuSDfZk/yoKRVZBAf/8G2mHv1DhoA69ri2FyF4BuahIFnFXyX/8qnU0hyk5fzGtvOfQCOCKOXUQCNoMKRjXeK4k/NuGHTQMXkRoKZaTGB4+s+AZRHIY38FxQux91skmtV9x7Qegs0aAfKnA4oY2jSUAo7PH68251fiHKDeABmHXQq6eRLMWneqvZaqFBgrerb3t56wYmAkgm0a31wUIwPSxqLhH7sM5aQnBnWCKi3otCbA6Yua6gXYXzU/D7+j8q9WpPzgP4clWnb28o5Cq43spvAoZamPF0Q1nYTKCWzi3eZh9a75+73YGRswMt3/EzjGliswQg4ApugK6vljbUvp7NPDekVviQhj8Ap03MoiZl9cDiLrrY1ybvWHlHaqrX5Zzva1js0YGwvYyyqYc/sao8tOriI9PhJH1Zs9Hq53JgR8S96Mqqh8Ud9hB6lwbfnPDtAuPHxwjmai0fQoKOMHNNuRKe589LPoSrYCTGI33jJXjZInFY+wudAnAF0M/j7fU6A4IYbyqpr52LaDZTE+fBDNfLqwuiiz3h9fOi0PgNa0i9NrVuRMY926Rg4Iz1rN569QZBF7IVoam7aqq7GQGSj3WLLB8AlkNz+QXWSbjXJsQWNKaP79Zkx14j631k2sWxI0PD7iNNLfENfusA45i6NwcNyX9D9R8y7diulWMfGsOqFmnImmDcXg5 VXIScFjt cjet3cr/NOzL6To0jsL5M/aKqALHmVbG7hl+wwfT8VQLdEJJoLs1HedVNDlSt9N5LkUPX3zJkvXYTuFQRVLsabkiGEycza93ecgDt0vyoyiteF37QulAxv+Qvt9QmwoJJLk85LzMbpPjxmVqXC5HqgBPwfzuPxlReLQ+aX47am4l5p03kERTDstOkC5WgWGD14meQ9HWSVbYTobthuhv1HJG5qAhmCCvOjEbidcX9sdzGg9pYiDzjCjx8VaTv4k/I2zh1ZxuWqbpQF9ifC6Rwy0dmYAfUP+kBtdWSFsThLEfaKyIvBw087ShgM6eR9kq9ZVsvdBEB6GmybT6ZIK+S01RT8waedqNkp6uVcJjk1Dtj5CiEHiZp7p01+s8/LVS4vEGxOqDWmGXZIsz5cbJEVe9YM0PURNa61+bgHRkonwMYeTBf2YxjevkFjiqzaukJp28I 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 |
Converge on using secs_to_jiffies()
|
expand
|
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 */
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 <eahariha@linux.microsoft.com> --- arch/arm/mach-pxa/sharpsl_pm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)