From patchwork Fri Nov 15 21:26:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877125 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 5BB0BD68BDD for ; 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 ; 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 ; 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 ; 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 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 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 , 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-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: 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 */