From patchwork Fri Nov 15 21:26:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877123 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 8BC2ED68BDD for ; Fri, 15 Nov 2024 21:26:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BC4978D0003; Fri, 15 Nov 2024 16:26:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B2C5E8D0005; Fri, 15 Nov 2024 16:26:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9993C8D0003; Fri, 15 Nov 2024 16:26:44 -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 7E5348D0001 for ; Fri, 15 Nov 2024 16:26:44 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 360ADAC5FD for ; Fri, 15 Nov 2024 21:26:44 +0000 (UTC) X-FDA: 82789612836.05.56DE263 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf14.hostedemail.com (Postfix) with ESMTP id 69C82100006 for ; Fri, 15 Nov 2024 21:25:51 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=qqVpjOTp; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf14.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=1731705938; a=rsa-sha256; cv=none; b=RsSzsd4ZZlH+4WN7I6LxN20hXoCDH3XeSCK5g/JOQ9RONVKhXkMpbMrWS5OPToLNXNI7tR iReIoPE1x/A73j0Z7W8ut/wqGozOBqIsbWnuVOLvSPpFKwvvnsa7kqq1+QI/v5647AQpVn 18FPUFDWYuWdYfdpv1t//EMBaFKLn6o= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=qqVpjOTp; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf14.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=1731705938; 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=Q64Lap8gGilYnZS8wBYuXVtg6CkDWFgIDR5hpRb/qKY=; b=zIgCOYFe/SVW4mFju01dLh44vfPDgOh923nR6It+JEw7kqI8EsQAZ69cO6rP7Kw5N76XQn jEErDoMZe0oHFrIzNhX7rqYiJON+zr0KL83X4WDgI55ZMMxrfgI1ENVZS8eTVEFzXCAR7P CkxMW0boOsSOx/3dP/DTag3Vx2dXrpg= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 33C45206BCF3; Fri, 15 Nov 2024 13:26:41 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 33C45206BCF3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706001; bh=Q64Lap8gGilYnZS8wBYuXVtg6CkDWFgIDR5hpRb/qKY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=qqVpjOTpvUDnqKvyg0F7x8y5V/QTgKE0vrlMSYSCNCLw1VcBjI0/Vl0G6Q39TTHHt DRDU50XbhfXe3YX2edjYJBIv3SoKO3DsasrlEzDNkcD4CPzZrQ2JNzKwdnMxBZK6Fj EbvBkDXPncjur9W0Dtl4dgGCI1NPWNvWmxFYJQrY= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:18 +0000 Subject: [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-1-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-Rspam-User: X-Rspamd-Queue-Id: 69C82100006 X-Rspamd-Server: rspam11 X-Stat-Signature: 8m4rrifpyhqup8t9rm5zsw5g68mgzfk8 X-HE-Tag: 1731705951-658479 X-HE-Meta: U2FsdGVkX1+BipNua70AkuHoJ3Q+CWls856dYB6CkSepcBdzyZruEKyMTILEPzaJzABiK3Nr/nT0jusRKg+jucarZJX6OgUk5hELNjKJMMycn6ClR3zcB99bv2LJZn3sa1qdQ6mJox6iLxKHUHVLxLVBYZWe456QdCw/r2joH/bvJ5clcMTc2dAar00l20X9NZZTQzsi7NieJ6D/khoUJwvsBsMH97QLXloyVqXfZIDfLI2uajZ2xj37ZtdiWenZAZuPlHP6GeYKn/xNrUKiBVzM9ZqF6Debs1fEG0T84CA7e0tv4UKA9KCJZQLEvVcZy26gwbOAUMU4d7PGuq1CT34hb2qh/h+tChMioCwXgoy9ICMefkfuUZ3lqAGP7M31j3G+OQjWbUi/4GGf9y92Gtkohqghj4mQKFremqca2NF4NqS0AuuSloAJR0hacOAuV1d64tUPrF3XKqcpcWrH7gkx0NR05oSwyQJ+1A3CKXEkGuTz+zVwbSRQNzfz2zuTVSclD6o+v9vB7FydGut+9mqEIrzmJOcwgPGX6jhn30Onh9EHlSHV4m/A2y8KeU7Q2swHloVrVBT1jDytZGj3q/WufU+Yz3UVNwlFpDrPVpyav6aHCEgAHiyPPHxvUkl1CvN14E1zpMGsUyrsqI4FZx40xv2EH0rRGT6k361QlC2rilT2ECMbXBve50yJucdxpKAAJUfgye9ARR/olkQ941bLNjx/d0goT2NPwMjoGuiporaOCUuKwADWTfeflbVb3zwRn0l0JqyddcR0ddMHxJq6b7HE9z7edNL3YFb+Hvfm1gA7cPiZtLSBR/AIgfjJw3zzzMZ+5TqI59LG77hu7pIZC7XMTQhaP0DIit0FT39DYJjb5q+HgTJG9FZ1HTvYSY2YgnUrjgqOkdgrvxJc722RtU7cEfmnWMjw+viPy+1yha2hGgVXqnSAJj1rnwEI5th/6fAjZc+I8Gv1kpX mySfvdJg UFOgw2SHttWzIz3hcu1oa7jkvsYJ1bi2Va8acqEMpjdp+WSIhV9LJwoHYMIArow4b8OXGIWjNmS7+UZZ3hJMsczkp+IOGYeemCTvmHy7o0680NhMaPHoPV0nWZ566u/a802F4mP6ecVwEaKRqzz3cAi2axKdaQwJVH9VUZtvuKoSc4QB3SJHUFfv9kTHvaNM64SRFbYMcmhk4rxC5NnRYFPvSyc8w6ICF0jDosXjH2VsN0AcgXAWwa7OLtxw0EVGVdtou60VQ8jWMANodOb6ibh0s766xGWUwAfAOe/XOTAjKZvJO0M1GQuR+IsKfFumG/ljb8L9nOGa5PWVgKOPXLuN3wOL+wCoeQ2/EmUKReMPcFtTn0YaR5Uu9/9e9MCghGNExfKL4JnDhvtI= 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: None of the higher order definitions are used anymore, so remove definitions for minutes, hours, and days timeouts. Convert the seconds denominated timeouts to secs_to_jiffies() Signed-off-by: Easwar Hariharan --- net/netfilter/nf_conntrack_proto_sctp.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c index 4cc97f971264ed779434ab4597dd0162586b3736..6c95ac96fa42a39acafb5b88a7cf8898010e911c 100644 --- a/net/netfilter/nf_conntrack_proto_sctp.c +++ b/net/netfilter/nf_conntrack_proto_sctp.c @@ -39,20 +39,15 @@ static const char *const sctp_conntrack_names[] = { [SCTP_CONNTRACK_HEARTBEAT_SENT] = "HEARTBEAT_SENT", }; -#define SECS * HZ -#define MINS * 60 SECS -#define HOURS * 60 MINS -#define DAYS * 24 HOURS - static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = { - [SCTP_CONNTRACK_CLOSED] = 10 SECS, - [SCTP_CONNTRACK_COOKIE_WAIT] = 3 SECS, - [SCTP_CONNTRACK_COOKIE_ECHOED] = 3 SECS, - [SCTP_CONNTRACK_ESTABLISHED] = 210 SECS, - [SCTP_CONNTRACK_SHUTDOWN_SENT] = 3 SECS, - [SCTP_CONNTRACK_SHUTDOWN_RECD] = 3 SECS, - [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = 3 SECS, - [SCTP_CONNTRACK_HEARTBEAT_SENT] = 30 SECS, + [SCTP_CONNTRACK_CLOSED] = secs_to_jiffies(10), + [SCTP_CONNTRACK_COOKIE_WAIT] = secs_to_jiffies(3), + [SCTP_CONNTRACK_COOKIE_ECHOED] = secs_to_jiffies(3), + [SCTP_CONNTRACK_ESTABLISHED] = secs_to_jiffies(210), + [SCTP_CONNTRACK_SHUTDOWN_SENT] = secs_to_jiffies(3), + [SCTP_CONNTRACK_SHUTDOWN_RECD] = secs_to_jiffies(3), + [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = secs_to_jiffies(3), + [SCTP_CONNTRACK_HEARTBEAT_SENT] = secs_to_jiffies(3), }; #define SCTP_FLAG_HEARTBEAT_VTAG_FAILED 1 From patchwork Fri Nov 15 21:26:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877124 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 7617BD68BE1 for ; Fri, 15 Nov 2024 21:26:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0EAA08D0005; Fri, 15 Nov 2024 16:26:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F3FCF8D0001; Fri, 15 Nov 2024 16:26:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D1D378D0006; Fri, 15 Nov 2024 16:26:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A37508D0001 for ; Fri, 15 Nov 2024 16:26:44 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5541DC02BF for ; Fri, 15 Nov 2024 21:26:44 +0000 (UTC) X-FDA: 82789613466.28.D41D375 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf04.hostedemail.com (Postfix) with ESMTP id 9252A4001C for ; Fri, 15 Nov 2024 21:25:44 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b="U/gvH0lz"; 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; dmarc=pass (policy=none) header.from=linux.microsoft.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731705764; 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=mjGmNlPTDeXtBIVnBruZVxnncRcSbkg/ti9M5w2fu78=; b=sS66wG14GnVrK+ZXFlQ1+fDldnbZHB058KA4DmacPwWwNbvvaey6miEz3nv0hZJqg9eh0S t7ueUZZVA+g5mwtuEjrhMbcY2lLmYfzz5TqCPUx8/XZvgoqHqUp/bPrX1Q5exsLn35S+PG VMfDRb5RIXx5uCYDYeBW381t2IcVFTs= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b="U/gvH0lz"; 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; dmarc=pass (policy=none) header.from=linux.microsoft.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731705764; a=rsa-sha256; cv=none; b=ijW2sU75AryOUs9IYcR4jOh/1IvrBGFSJKcEQ1DCHRcVFcmq2cdcW624dX7c7rBGT7R9AW GnRMxDoVh4gQinLb+pz8G5BHryhglbEfSA4mxpv0qUPSNb8cJo4Rfk4Z2Dth+d6XoI1Hdb wnt6pUVU96ejvqDRlJmt94b5/oFeB4I= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 669E7206BCF5; Fri, 15 Nov 2024 13:26:41 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 669E7206BCF5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706001; bh=mjGmNlPTDeXtBIVnBruZVxnncRcSbkg/ti9M5w2fu78=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=U/gvH0lzaLER5CbzPB6zD06w9Keq1U18T2/iQ93vXhu6AQN4lJ3/X3Ps8tBq+V9hU 8JfV3K4VKfGl26W2AQ+6bKbYPc1Tg7Mcqod+tAQYKeaUhj6tHi9CdVz4KsBV+7LMZi VJMS6VhHAm7J/udfK+gDmWasBhF364IpIQjqUPkc= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:19 +0000 Subject: [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-2-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-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 9252A4001C X-Stat-Signature: qu8m564k5rop7ufgzypbisa1n4wexhn4 X-Rspam-User: X-HE-Tag: 1731705944-79408 X-HE-Meta: U2FsdGVkX19N2OXTw+e28UxecQRgzCvckxiJROnsrCnbS8z/ViUCemUciOxrJrbKlebqfAOD8fjht736GFnvI31+VYh3kbucACPaqGi/5GUN7BwWTzNon8vkQsbjhcdsrCNv5Qd1x5eeKajChTCBAXzHe7cF2HAUytcR4TniRJfzm5J7AwxxXG3MltNF0bkpftrZVs1iQm9ro/VL9LjGjwbbbxFPaHEKWkRcwjBMM+LHarsArcwI6XMle/597mew5ELyX0vTjQ67Tvq1mjcTPB+tffkz+Leeb7aIcUOLZ2onX/6tA60S5BkaYFc/2g62uS9n9/CZqkKWAqcnqTZve5YkWRTTbSoSayXFMC6lfhZY90kGArPwSjiaq+vT9qzcHPK1D/K84N0TNee5VxJ8LQGJScmswo9y1QXfPTouF08pyKM3QuSAIzW4JUFb8JcYq58djJKkCU6KJ0nGg1N2Ef7jt9Ne9/nGUnfksxK0ZXo8q0OiVGmLMJQ1pKYi1znfASUwrDjlU5vtDEaOaf7hMgJzST7e0C12yeHaVgbY4L9P1a7UsMWhQ7AXYmT6dDx3SSx2V8F31BZHFCBYqr+4tcaBn0rF8a1+w7kVBUmMcJKgFh5VR7P7udp6EXYXPl62umwXVvhBAGoCoelnYx9ejjJkkwYtt9aZmEyE6JaGjtuc1yuCjw+NUX36t+LzxutVEN0fpZfq8DZwU06fSIn+I7hc2pCPLvIOCNvdXXTKwgW1b5furQ2g5v65IS3Nk/miNv+CwV98p/FoKOCvNmlZW/fIs13P78Qmcf9y2cqr65Rd2hgumJ6IxAJhJvcdMezehjXIw8z9/zBxYcDRAuo0htIFh5JJNn3kbRYnva8qolSKXXHoelz4j0YglOjNtZlHIiGx7hpWo684RvTMIjGLTHJjndxTHnmqT5He0S28E7oR2hHrybNvpFWhAikQkzG07eGFvAIrvuAWCSg2SZF apWCK9F5 gBFMSFpvNeVtE/5sSYIkE9jnhm8n0VX7wVASMZe1X5N1J3tdND+BqkfeX2LFB7HkLr5QfZqjfCz3aOhbVflcFMMamo8gTJMSq7FwLmLCWj2bZ+3K+g+en5EpdVLFFI7F4/rAqlOnSTot6hojHmRmVKGag6cHR04pGNInzOJRFagyUb4WhrIJXfiNh0WOiasC0H0hkVzvKO+NM21mUy8HACammvOSnvusz1sg43Wd9cnWTj5gsqmTugP5m17znKuQ8dowpwLI75ggMBnBUNz9t4uSinPyakhJ/fTqYy/hyASABQmG9QIeeUMa24VOIlP+N3F9EAnW8rjCimWU872vIHCxXrk2Z9OFrJ8DnXP7rM3L+LeJ3lT7Nkm8jhmiQL9Y2mFWX3aaioV+GYBAzx3V4eFoUp2aWlKv8nvSNELknbpZSKaj4hGgDCIZQig3bYRYrZOJi 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: Suggested-by: Anna-Maria Behnsen Signed-off-by: Easwar Hariharan --- scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/scripts/coccinelle/misc/secs_to_jiffies.cocci b/scripts/coccinelle/misc/secs_to_jiffies.cocci new file mode 100644 index 0000000000000000000000000000000000000000..af762b1c0aac8f044f21150bfaafd9efc834ee87 --- /dev/null +++ b/scripts/coccinelle/misc/secs_to_jiffies.cocci @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0-only +/// +/// Find usages of: +/// - msecs_to_jiffies(value*1000) +/// - msecs_to_jiffies(value*MSEC_PER_SEC) +/// +// Confidence: High +// Copyright: (C) 2024 Easwar Hariharan Microsoft +// +// Keywords: secs, seconds, jiffies +// + +@@ constant C; @@ + +- msecs_to_jiffies(C * 1000) ++ secs_to_jiffies(C) + +@@ constant C; @@ + +- msecs_to_jiffies(C * MSEC_PER_SEC) ++ secs_to_jiffies(C) 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 */ From patchwork Fri Nov 15 21:26:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877126 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 5008BD68BE5 for ; Fri, 15 Nov 2024 21:26:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AAF608D0009; Fri, 15 Nov 2024 16:26:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 977E58D0008; Fri, 15 Nov 2024 16:26:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 68E138D0007; Fri, 15 Nov 2024 16:26:46 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 469608D0001 for ; Fri, 15 Nov 2024 16:26:46 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id CA89980324 for ; Fri, 15 Nov 2024 21:26:45 +0000 (UTC) X-FDA: 82789613088.04.56953E6 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf13.hostedemail.com (Postfix) with ESMTP id D89BB2000D for ; Fri, 15 Nov 2024 21:25:56 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=iVvLyPnz; spf=pass (imf13.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com; dmarc=pass (policy=none) header.from=linux.microsoft.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731705766; 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=2qNmVTIUPIQHjxG6U+oz3oOJorUpDTvltiEua1kgDGM=; b=xpf2XclFyjGIQ3kfNdFpiec7c2fIOCHvhMhBf9Wu2KManOR0vG6xFjd0BOf84n2sNzmTS0 WZ3Uf7rUVcxzuTlK97a0l1C3JCRoOWLFOtP4/ScCe75oBZ3NIDxXsYDblA/P5eTKFKU/76 bCszl76pS6KbHAp3oeD6IFyJUny0350= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=iVvLyPnz; spf=pass (imf13.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com; dmarc=pass (policy=none) header.from=linux.microsoft.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731705766; a=rsa-sha256; cv=none; b=pSCCjVEmRU4ir9PJXf4nkrFSt/qF2OHYmUJuKXKGsz3KlalC/Srs75LjEQfUi/xnwpyrjl X2wJIGd7oC784ht9tiC5JDP9Zyh4Jg/C+7CAB6pFh7VDhbS5FAr10g7WV1JJrsi83AS2Vo zSx4KbbPS/tg4hLDsTKWCm/XFriDgXk= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id CEC70206BCF9; Fri, 15 Nov 2024 13:26:41 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CEC70206BCF9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706002; bh=2qNmVTIUPIQHjxG6U+oz3oOJorUpDTvltiEua1kgDGM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=iVvLyPnzqMDnIVqCr8TaID7h6/EcvZ4uGITdugla/Mpc21N0a+zSOXosYGRpfd2vu d1MyMoy9U+Z9sd1VeqqtG/myJ7CKMnsPLRLQ8NuKd0YjVEIqU9hZB6KsELpQ9xGs8R v7zo22n2+S5uyzdobRgvEalMR5SyEYAxTB4IIGU8= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:21 +0000 Subject: [PATCH v2 04/21] s390: kernel: Convert timeouts to use secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-4-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-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: D89BB2000D X-Stat-Signature: xq463nryp7foi1htwikf859kn98kaf1n X-Rspam-User: X-HE-Tag: 1731705956-899084 X-HE-Meta: U2FsdGVkX1+NCYXyHCWwrRe1aSrDg++/ICAEoyipzD6ByURHt2ig16lAUG2YqlWn5GTrldTl177Vg3uHTpAxo4pG+CGx+9tzMMymB9zS5QUvk3kzvFMJoUNN5H/J5QQzNIrPP7BlILF4Zr6rWJEKCEK3M9GsuVTh3zyq02O4Fs/w9V3MjP+ys87RWFCA+QlZJ0xwmQHMrmhwdKuWTrRluacndE7+jK7ZDcTAMKGacRvCPJWd035E53KTiFxP9mt492ZGSLzMAqEPJa8raSLwkEZFIfDgQYSxHRKuw92AfHANYIOfTVzU21SRd0k7j/ubNXdyIK4vliOoMqqXf3pJVb/k1OV9UIFXRent/eSNMr7ot9rwYsajzOBm35aCpTv0ojCFmNzQ4dJBmR1VyCPGNltiO1z4EFZDp4qLDMigO7ubMCN3zm8mLyJzJHmPEdB721hv28yl6U4+rgOIDoqPTLQv+6xQ+UXJGbA8uUUf0fbZvznMqqh+HiCAAlwxIxskiDMDNW6JQWCmrDEEDEHpBJCpKHK+T+xjwanLtDaUpxpF6ZDQANoEybvWNxNWSW1/mFjVte8czZnvXOpKVypV/bjnimmVJWcj/9G/HiAeN+xLlNLeeo8EFe+HsLjncHKDSGk65940CXUrSknvczJoP2Vp0WNheWiTwACyCI82QzYYMA8lj4o6SdGmZPvXZpzfSnZyePaCT2lSv51pJCQuBEYjbX9DocEA/6UXoyAX/0N0gOVYVQcd3BSI4g2LkjswSLYg3ARWwnchG34BfbAcB4O0hd1TIJWUrf8fNlQ9gHmZT2GmPt7TisFCGvw1IM1cHe6h1eR6GjZWt+J5yyZ0tBdqtbss5h2bQz2t0H4CpcSPd4pIgFLvATKE6DSoU4O0xmMyLjOjT/jGSUT2OO1dX0vaxcwTlMG9HNrOcqoRQxWIzQtEKNjYZNpXj5m3TB7wryBkE8iUkFhnQeblXja Gq9NQfaU 2kD9yEfs+eSX+TYFom9BlIlj6aLWS1ygiKVwCGkn5GNkuodPQM9T77UVYvx62YAcxzxn/P6UwXsD8kQYjcUHTI4BSKbF07iGNLCv7fSMk1obkZoS+aBU06F6YlCnBrcUHER8LheU1pl7yW64wDbvDXQgsQuuAUMeibKV/37FRyAFd5b9glka3rf+BL5Ox0fy22Y/uzjpSt7C7xUYBJpsoyQMOReK+fr/qswb0vE4mSPcBCJEZiEcW2CdTEh3Ka43k0kWxpqmptu1eURWXwA7uu5vxH/EVaHFMx7+DhI2KtklkRuxuHmwCEWMPozjxlNT5uPq6El+3TqHaNFBz4ZVSS1qOxDqB0mlhLxgvEWOzg8l/KTNh/24dSUWErJUWX2ECLWTptDAgAOnlCh3HMQHeLrdyOBH5jdSakbO4nT8urVrq8tMNMOnEH2IIh8HJT/medwMM 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/s390/kernel/lgr.c | 3 ++- arch/s390/kernel/time.c | 4 ++-- arch/s390/kernel/topology.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/s390/kernel/lgr.c b/arch/s390/kernel/lgr.c index 6652e54cf3db9fbdd8cfb06f8a0dc1d4c05ae7d7..68021cb38574b122bbe3d9f70e9168305360017b 100644 --- a/arch/s390/kernel/lgr.c +++ b/arch/s390/kernel/lgr.c @@ -166,7 +166,8 @@ static struct timer_list lgr_timer; */ static void lgr_timer_set(void) { - mod_timer(&lgr_timer, jiffies + msecs_to_jiffies(LGR_TIMER_INTERVAL_SECS * MSEC_PER_SEC)); + mod_timer(&lgr_timer, + jiffies + secs_to_jiffies(LGR_TIMER_INTERVAL_SECS)); } /* diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index b713effe057967623f64da8297314fcc42ff1af2..e28c61d39d27c6e89f490e779ff674ba2fe21d3e 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c @@ -656,12 +656,12 @@ static void stp_check_leap(void) if (ret < 0) pr_err("failed to set leap second flags\n"); /* arm Timer to clear leap second flags */ - mod_timer(&stp_timer, jiffies + msecs_to_jiffies(14400 * MSEC_PER_SEC)); + mod_timer(&stp_timer, jiffies + secs_to_jiffies(14400)); } else { /* The day the leap second is scheduled for hasn't been reached. Retry * in one hour. */ - mod_timer(&stp_timer, jiffies + msecs_to_jiffies(3600 * MSEC_PER_SEC)); + mod_timer(&stp_timer, jiffies + secs_to_jiffies(3600)); } } diff --git a/arch/s390/kernel/topology.c b/arch/s390/kernel/topology.c index 813e5da9a9737e05ec3ef85a495fe38cbb40c49b..99095ff3897c1b5337f7e2abcf10f3fe8219ad7c 100644 --- a/arch/s390/kernel/topology.c +++ b/arch/s390/kernel/topology.c @@ -370,7 +370,7 @@ static void set_topology_timer(void) if (atomic_add_unless(&topology_poll, -1, 0)) mod_timer(&topology_timer, jiffies + msecs_to_jiffies(100)); else - mod_timer(&topology_timer, jiffies + msecs_to_jiffies(60 * MSEC_PER_SEC)); + mod_timer(&topology_timer, jiffies + secs_to_jiffies(60)); } void topology_expect_change(void) From patchwork Fri Nov 15 21:26:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877127 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 B7190D68BE1 for ; Fri, 15 Nov 2024 21:26:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 00A248D000A; Fri, 15 Nov 2024 16:26:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E54788D0008; Fri, 15 Nov 2024 16:26:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AACBD8D0007; Fri, 15 Nov 2024 16:26:46 -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 7D88F8D0001 for ; Fri, 15 Nov 2024 16:26:46 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 3721F1A0440 for ; Fri, 15 Nov 2024 21:26:46 +0000 (UTC) X-FDA: 82789612248.25.18DD913 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf06.hostedemail.com (Postfix) with ESMTP id D20B1180019 for ; Fri, 15 Nov 2024 21:26:11 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=L5h+l6Rm; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.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=1731705825; 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=uwqJCSe3GXdPjGHghPvDBfnEwZdT0uYA3z4HTDFu1hA=; b=2nk8e/r2BmqAqVnRa4rEYjrYQraPF+EXjtbApTF2AFPM83eTXmTTCIOWxaFatoDiY9hUd0 sv638ms7gZgczbpUsWbHnzThdfZGqpmeXzVHyUbyUj8RkcuAL8+ucpjdrkxIuMI/5in9zL kNJR+cXAM7JfC+M5ajh8WSMcGxbbgMI= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=L5h+l6Rm; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.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=1731705825; a=rsa-sha256; cv=none; b=NxShOhm0dEkt1bb5s1hU39IQLv4pzvc2hr2kye/y7WPt95IvyawNm2SFu/5XIaTQZeZzY/ w6zP0T/FaOR6a2WbW6WAIJrBpWkc8nis4PG6Y5+9z1ES3+Viq1LSxOQXCaxD9cN1DhIo+U jPjNIkO0ionfkKqj+H8K8JgDXXt/9hE= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 2B4EB206BCFA; Fri, 15 Nov 2024 13:26:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2B4EB206BCFA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706002; bh=uwqJCSe3GXdPjGHghPvDBfnEwZdT0uYA3z4HTDFu1hA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=L5h+l6RmonxJ2az0g4MEjFj1mZrgP6QcCu4emVFVPsXRGSbOqO7anS7hNG7T+pDPJ RufyF3X+SQAP7OBNi9L4oof0Mf/N1pw5KpaxKZGsx9C6BQjH2p+gXUlgOVsy2nu8Ns vF3R0Is+PXb/IIvu2e2kzQ8Cg4xNfFZKq8iVxdGc= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:22 +0000 Subject: [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-5-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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: D20B1180019 X-Stat-Signature: aik4k8cg3dfuzn6457faa4rizaseugp5 X-Rspam-User: X-HE-Tag: 1731705971-586775 X-HE-Meta: U2FsdGVkX18jeGC0sldMHGmBZssb6RiOmDAAGskFdf6o5pARXUmUAOC5+1QDRJA2DWJd0aZkEc2M6jJ9AokEL+9aqKLFeKs8nB48goafITSXvxBMzyaFiExUVdjZk2aJc0YJOpG7ioP9JcrhJmlqkeTyflLUEFJhy5tdUrqEeQawxT9iN1/kghP1zwGqU7ha9EABPcmsw+P3LqZaKRF8d03uxriN+GvqOS+LDlVkhLyESEOWicffiN1wPx9HaLmP2K69fuH7D0bNKIhEytPa56NmyB9MRF56oh/R9NXpA8P24pdLACf6Df0Bm1sB0qLLyEXct5vPeUCVhZPY/Uug25o3XjzPbarShC2xPyb+0MFyqQBDNg3tpHvJFQWSHjGPkRXAH1Z/Qt0F59S33JReIqcifx7pGvnkc4xq1kHwaujx9H+gwOLkoTQRnNWRvDBKDgZr7QVtxJjftXJFa6pL7K0LrCoo7cd6xAAP5D+8KQoh7i/PIQ2UDU/gl8q93WfaKyLut2EwCkCyM4TbaQDddl0rOgMPQcNiMiuDTkfk7dgJxM+OzvCu+GGV4QndrPwKnf5lf4gAMlqq4AbVq4aTpLp25S+k3szD+YwZd/NaDMu0sOYXjdYFo9VApomvFaiDJlI2J6kAKHCLrQcdrx/ZwONP9KK1B0I6SYzSeH6Wc6S+n1vPxYiCegyG+XXaxdzHLXeP+0+lVo2jcDlgz5coki4QjtJIXNnpgbPKS5qTVzLFxRNeklU66zNq/rupyttOJLvrZ9nLK+VKX+U55TXGGQD4PQgNPex4WgMCotEjMyfyEmT5qn5LDb8yvLJDhz7dREvMu8p7sNAS6TQIz079yBxUNyxWekAjbHTru7erqjswpNcCBmrjmM2HKA5ggsoNgy8KYGnEoG7ajqHZSl53x5UipKfrt8HLAAPv/XdQqjMNCOK25ekfN+zc408c4/u9fEmiVr/zgozGhAEm6GM KmA7/wmx cr4fsISk3czL8H1CyXSrF1xj9BudWbFglUuvtQIMjQ+Y3ck4Xt0v+YaW6cuUKFxbyVfpccv3aryPnLqv5ANgfxThsMWhRtU1XPYsDNlbhcGlm19XiZUJ7iT3/G9213UErIbKAFHwXptsN3fNOAHIo8U6V0yO14z4p62cOf4ZVj09i6ybiOZgVVftZMMG/YpOVNNQHQkQI7Y8TDvkaT1KN7qETgnCXLkOMGFAf3HPG7js/0bhUcSN9p1XZ2s1f7YgvdQTtuNonL5B9O85kF4ctq2O1Ax6xc+Xufv78o6xOnoAx3npHhVPEP8oBrxnwxwZohfveDdg4hid/Y7yQwNtnXl+CBu2x3sN4lRpvBR1IGy5dHYhB73EMp791A7gahzIclkJ+dHFX0kzO0Rxh2hpaxn9nn1QgfvwJ3/scq7jfKsIDFgmd1Q+rR6ujVQ== 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/powerpc/platforms/pseries/papr_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/papr_scm.c b/arch/powerpc/platforms/pseries/papr_scm.c index 9e297f88adc5d97d4dc7b267b0bfebd58e5cf193..9e8086ec66e0f0e555ac27933854c06cfcf91a04 100644 --- a/arch/powerpc/platforms/pseries/papr_scm.c +++ b/arch/powerpc/platforms/pseries/papr_scm.c @@ -543,7 +543,7 @@ static int drc_pmem_query_health(struct papr_scm_priv *p) /* Jiffies offset for which the health data is assumed to be same */ cache_timeout = p->lasthealth_jiffies + - msecs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL * 1000); + secs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL); /* Fetch new health info is its older than MIN_HEALTH_QUERY_INTERVAL */ if (time_after(jiffies, cache_timeout)) From patchwork Fri Nov 15 21:26:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877128 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 5C7A1D68BE9 for ; Fri, 15 Nov 2024 21:26:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3D3608D0007; Fri, 15 Nov 2024 16:26:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 35A2F8D0001; Fri, 15 Nov 2024 16:26:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 001138D0007; Fri, 15 Nov 2024 16:26:46 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id CCE908D0001 for ; Fri, 15 Nov 2024 16:26:46 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 8F02040323 for ; Fri, 15 Nov 2024 21:26:46 +0000 (UTC) X-FDA: 82789612542.21.16568CA Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf12.hostedemail.com (Postfix) with ESMTP id 34E4F40017 for ; Fri, 15 Nov 2024 21:26:24 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=NO84Sskj; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.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=1731705825; 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=cDb5q9ey4rgvzuTMFsMkjW3R4ZHiX3a+lRd3JDjV6+Q=; b=7Fga9TFha2jhrVS7w7Itf+j+c2zvx6tHjlAfYrwvX5kYbxvh8iIAjHvJgSMrXgs3LmSjqB 3HIHS3xN0ZbvtsytN96l8b3WQz+44lgRKvNqK7VmXhhxzSqArc5QuFAR2EmqYQlqWC8rFj bsR6oohlMe9xahc99YD00535foVBI7g= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=NO84Sskj; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.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=1731705825; a=rsa-sha256; cv=none; b=V8ckEAKkFV68VSNhVixehIkeIOxs8muIJhqz0SqWlEVU2ntorFYXBvT+z+nLKA9cjmuW1B CrmBF80eYr1Ec4tKkfPYE1P8uDf5spK4BqmBlDWGS+OYbMTFlSX3gBPdwt8xKpGuGaFCjH PcyuiciQ7qocqvth3DIgPPbe38A9Rc8= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 5DA5E206BCFB; Fri, 15 Nov 2024 13:26:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5DA5E206BCFB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706002; bh=cDb5q9ey4rgvzuTMFsMkjW3R4ZHiX3a+lRd3JDjV6+Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NO84SskjrWC/WFvKvGdiMiujlTtBQUCv9VY6UYFsNxghNS3m5K63jnaoGusNsUnee 5tLTM7woyBZaUNuUFMB3oWVBMOozS3J1y7PPugpo3cvaz/QXUdeGix3ePT8vCN2oIN gQ1ZKgfEKCkg+XmnS+/V2pj/LNnJYminStxSf4BY= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:23 +0000 Subject: [PATCH v2 06/21] mm: kmemleak: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-6-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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 34E4F40017 X-Stat-Signature: dudkrtaez4jw7xesptyh5puffncpxjtf X-Rspam-User: X-HE-Tag: 1731705984-438368 X-HE-Meta: U2FsdGVkX1+D6YgsfeybgSexaPs/Kcuq2g2uipmNDQchJVwg38Bft2vE0K9AT24/3lPBHaEIXt6t/QICp2s+m+ZcWmo2C+NppKuA2oIHk548K7A7de7avizZT2HnyzLC51cZICw/aoTjNgEe3e12WoXMivLG0O7GyjfmdWlm9RZg0V1QCE2Pz0m3Vz4c7fyuDxuneb0LoQeE0XAeImH+1o4pBW6bvS14ZpboY3wQkcMQPH/IeH5hYiMvImMQmDfEOd44Tq3I33KFF9In6XGLTNF40lEvM09e/+ahzTzDoDavF3npL6axz6IK2EOvYoJqKWHdjmoEwTEgWbOKP2Yfgqc9zUCNMGfHQB7uMMFaG8pCVoh5Oi4WiTBuWOfZcqr6XBXBBPa67BlMd5ZcO019JpU6VKGZZBIIf3u59mMsEZn26Qn2hn/4qYLHn1RWYWBxIindKtMFbgqL+OyXvgHK4VystZPyKFafrUBdR24JftA5dxtgIYOo6gYowjdpSyM9c8lGb64vQaXdUFS6/QLKUuipMIsIFfNaQ8LN76KkzKJA/402BRTJIUxf1WIYr4fqAU+fKwwtxXY48M7vnkJ42UcuZAT/hokbd+eLvUYJx7kD+uKDl2+fy4dT2tV/0vlDrox+QhVuVJbv+zwROJJrFQ9sRqA0kYxFfKnl4dKUWvA4OwFMygpLQOBtln9n4LijVBkGULjWqcOl889lnl7HoFiaNz0BxXkKa92/4blUjh+dJeMwjaxE+Pi29gJGVV8Hijj1sADWhVwbFy3L3sA2C+z/jPuQeKrvoh8smStSDsRfk1xBwq6rkATaUs7bfHeQPouK2kR5l6GX6GS63N5X+yRcWtSQXM75kUg1fIof7ytSdrcCENhcXynIPtu1J4uDra47k1FqMZ/CS/35XfhPvFvX69ZZV0tPLZa0SxlaLhUwKUEQCrgST/WnxP7uSXnjcSvY+K1HkEK36syZWas g9Vv/mXr D/bVtoZZ6T0tIWUhhvKozt73szdQEMd4FNNl86On1g8n4+TE+f0FqEMFh3iYXbsUjn2objrNn1MXiwFyqjtnf+lJ2Ge0/QJUTlzBz8YAKWxngsWu4brA1/YGK9rwNwFxMAgveIphzonEIS1iTpItKuhTB/1f2YJFa8sYxk3sMLtLpoB9s4DwEa7blw446IqacpRxXr4c3TdcrWyoagsviHQwJ6WLK/L4r4MHNWpW6To2JXU7vtogZdbhDVlce0iaZCmuF/WJt3vATEsoTWKUgadALRARK9BSZeCJfFP4Sm1gJCIVjsqx/6TjQnuk18NLJxsGg7RwGKQ2H36wzjB4GcbLDMNpg0lksU0afAqzVT0rf8r81VOavDs6GXPAmmWDXDBRpXiByTZJeLEIq8Mqq/C4SaE98fH5uDgolTeeSxggetyGJhT6V7ceSyw== 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 --- mm/kmemleak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index 0400f5e8ac60de555f43d85f1d36f67e48b4ebed..2c099d0819b1896390b842af76069a46bffabc23 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -1816,7 +1816,7 @@ static int kmemleak_scan_thread(void *arg) * Wait before the first scan to allow the system to fully initialize. */ if (first_run) { - signed long timeout = msecs_to_jiffies(SECS_FIRST_SCAN * 1000); + signed long timeout = secs_to_jiffies(SECS_FIRST_SCAN); first_run = 0; while (timeout && !kthread_should_stop()) timeout = schedule_timeout_interruptible(timeout); @@ -2202,7 +2202,7 @@ void __init kmemleak_init(void) return; jiffies_min_age = msecs_to_jiffies(MSECS_MIN_AGE); - jiffies_scan_wait = msecs_to_jiffies(SECS_SCAN_WAIT * 1000); + jiffies_scan_wait = secs_to_jiffies(SECS_SCAN_WAIT); object_cache = KMEM_CACHE(kmemleak_object, SLAB_NOLEAKTRACE); scan_area_cache = KMEM_CACHE(kmemleak_scan_area, SLAB_NOLEAKTRACE); From patchwork Fri Nov 15 21:26:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877129 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 BA9AFD68BEA for ; Fri, 15 Nov 2024 21:26:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AFC228D0001; Fri, 15 Nov 2024 16:26:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A84FB8D0008; Fri, 15 Nov 2024 16:26:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8887B8D0001; Fri, 15 Nov 2024 16:26:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 673E28D0008 for ; Fri, 15 Nov 2024 16:26:47 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 2247C8037F for ; Fri, 15 Nov 2024 21:26:47 +0000 (UTC) X-FDA: 82789611954.08.79D03D9 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf15.hostedemail.com (Postfix) with ESMTP id 8631DA0005 for ; Fri, 15 Nov 2024 21:25:58 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=Fqjuy5eS; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf15.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=1731705825; a=rsa-sha256; cv=none; b=5AEWhDlF9LXnd9h3iNEMzdXThQuIS9jyUNxSdXmNFzZ+EJ6Ml3N8MrfQ+sB8PXnPyI78FE saQAt4bDG6yQGXryV5Ov8RlLDlLeJ9StbVtCc7u9UumsH5H82NVCf+A4/zBUbLU3XRPjD4 MjEN2xUTRZxIzqFy6u9pOfuGf2R3iUA= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=Fqjuy5eS; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf15.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=1731705825; 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=QYs6jKNkSqRMwxas8zTGS0f9EDen03tWxmE1GsbmPvQ=; b=fikcr2APfj1LiOramoiXkrniloqI2jL/Yz1F1BeQ8WQYNdhxpfChHj331WJf6G8hq1OZqI PpeIFyanhlNH/y9FbHTVfQux/nY6A0vZbo6HmM2sXeQhqkvY21vTNlWb2rQ2LYrzDiJJjQ xylcT0w+JnBIfc7f+iPaJUTR2DMUpMA= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 9A64C206BCFC; Fri, 15 Nov 2024 13:26:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9A64C206BCFC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706002; bh=QYs6jKNkSqRMwxas8zTGS0f9EDen03tWxmE1GsbmPvQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Fqjuy5eSiRbnXSL2o0v7YwMA9fZ674Q/Gd+25Z4rP4RwCiu11at2Mv7W7PGMuqY5d K4P8ORik82r/04knqALaANam5+D1reZvHHMZxADzcYp9l2s2TYV6JJ/Elj8BYsGqr3 W1hOklHhhwD9HLzPgJ9aKxBAHgaV0sBNYgQwU9cU= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:24 +0000 Subject: [PATCH v2 07/21] accel/habanalabs: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-7-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: 5jfb9bwuo6pp4pyka1o5n1h9rk7uxaxq X-Rspamd-Queue-Id: 8631DA0005 X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1731705958-975710 X-HE-Meta: U2FsdGVkX1+Jjb0+sBB+NhmBQTaFoyIaNzbkliPwuTAM4rMLfSB9XSqlxDTDM127BTehfl5CnHN3dJR1y96+HF7OO05jIVX5UMCJWMQHKmvWdczx7SF62d2+npIe6zfT19UjtytJ24R7WKEZkNEl7n4V8AhaTYpfXNoEA/7AKKjMfYAf9x8f0TjQfgHZq85saQZ7UNh5wgLoY/fwGQRXU35tlSjosXnd+O6gMXt0TmTYta1v22AP2JCtGNEMvibf95p5ncjrx19HNkuzQqWCU1qciST4Tx516EkX9wRdO8jfEqMqWVBMy2c6GTymGXf4Ac8TYZs92fJPso8pBSfKl8Ek77ttEBFMtmA7E0KV7zr0tfZFHb555QXQ+BYcMtFTNNchS8MqJxHXE2Nzb5YUzHQJb8hSFfz6qEHzv7TdrxWzKlPoJhlDK9rklp7GUcumReHkT+Ub1xWd+Vj4lqv+o8y45NYfQmcr7BV+2rVqFTrD9SpnewV4BT58mL8fqhXV7W8PNZE6GvlLtBIEtpb6/f+3MBhCICNA9BoSF3i09xgWDZ322r8F6BQnezBfebw/G+iNjShwvkCkVLUh5mrATIRV+EhP58QPuoP69SJuHVIyXH/LDueV5Q9lxgvSJL6QBVC+dKhD+QDcspdFKNpsoq3GR6A8MttIQsrEPQJ0QjVSoH0hvHF4K7jbwvblCd2vRpcAucGovIbVc9kH2uEpjlmgOStNlJh5CwQhlfoq895+3mVAVyWEDWBwsvw+dfrerdKo8u+1xS4c2N0JEHtfXvXzbPcKrdXQ1cSfFImfxnDbI/xnLIYOteLyxlBM0J2kB0rh3nvaClekjpKfWWJDMp9nHgZeHrV1215WHFzkb0xxIIxeKyFkWF77sjutG3zmmRgBS3em+xW65VtW3OHRsfrfcxTxApoh4FeYkz1PV35S8nRulMecqPMNX3brFMuzFazukxo1UnzHZozp8JP D8hcJEi6 Bj+YYCDH3RVCM1KwGQh18RKmHr+xLpY542TNlVqz4b6ITG1VduNng0YIsRnHDgPxnNGT09VyrTJHLzWs17coUqC5zR1uhqh1M8fc/XWC1fbKCo+df1DKz4y/XNkjh3fB0pbTccBbWKpUNmrEn7DMdhV9FvI4fEqTjOnQGP31tncI9rXSegYO7YeDeo5hayJr+tcv2hr4+Chhv95W/mDOtXKw48MAtQdEo6MvitKSHJ222BtSr9tQCMLGiwxhDc2yXvY20d9NhdvqAkHOv7y64JcOb564ep4Y5FlD2pFYRhiVZaDRroO03Cs1tE4zn0ZhqRA78Wyy21AeKIV3nmWhObUDyE6eVO7tQVari3fiurSogDdJE9EmyRZzjYhhEiMpSyHYL0vVOi0W8Y7lZwX+wKp65eh2EpUJHS8DV8iALHsjAUL5j7Uwr0KET45GLXatSEv2l 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 --- drivers/accel/habanalabs/common/device.c | 2 +- drivers/accel/habanalabs/common/habanalabs_drv.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/accel/habanalabs/common/device.c b/drivers/accel/habanalabs/common/device.c index e0cf3b4343bb081638430f2552ed27431b488ff9..30277ae410d4b742ffb7bddc35498564ff96fe62 100644 --- a/drivers/accel/habanalabs/common/device.c +++ b/drivers/accel/habanalabs/common/device.c @@ -817,7 +817,7 @@ static void device_hard_reset_pending(struct work_struct *work) } queue_delayed_work(hdev->reset_wq, &device_reset_work->reset_work, - msecs_to_jiffies(HL_PENDING_RESET_PER_SEC * 1000)); + secs_to_jiffies(HL_PENDING_RESET_PER_SEC)); } } diff --git a/drivers/accel/habanalabs/common/habanalabs_drv.c b/drivers/accel/habanalabs/common/habanalabs_drv.c index 708dfd10f39c584a6221c29015f4b0323574145a..5ec13f3a46f915e75b04582b28d51ba8bb50be78 100644 --- a/drivers/accel/habanalabs/common/habanalabs_drv.c +++ b/drivers/accel/habanalabs/common/habanalabs_drv.c @@ -362,8 +362,7 @@ static void fixup_device_params_per_asic(struct hl_device *hdev, int timeout) * a different default timeout for Gaudi */ if (timeout == HL_DEFAULT_TIMEOUT_LOCKED) - hdev->timeout_jiffies = msecs_to_jiffies(GAUDI_DEFAULT_TIMEOUT_LOCKED * - MSEC_PER_SEC); + hdev->timeout_jiffies = secs_to_jiffies(GAUDI_DEFAULT_TIMEOUT_LOCKED); hdev->reset_upon_device_release = 0; break; From patchwork Fri Nov 15 21:26:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877130 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 4BB9AD68BE1 for ; Fri, 15 Nov 2024 21:27:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 83ECF8D000B; Fri, 15 Nov 2024 16:26:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7EE678D0008; Fri, 15 Nov 2024 16:26:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6191C8D000B; Fri, 15 Nov 2024 16:26:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 423628D0008 for ; Fri, 15 Nov 2024 16:26:48 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 01738120187 for ; Fri, 15 Nov 2024 21:26:47 +0000 (UTC) X-FDA: 82789611996.08.250423C Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf08.hostedemail.com (Postfix) with ESMTP id 979D9160024 for ; Fri, 15 Nov 2024 21:26:15 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=PLg1Ut3p; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf08.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=1731705942; a=rsa-sha256; cv=none; b=yASS1vLOguYXFjAFTR+cN6LR/69Kzi6VmKRDdYNnpn3TuoT+F3oZi8C5XSkkbQYEPbrM/9 tPFjkjBZHjzTcgvX0dA+fd4WrkDJnWGrh8HlQFwv3V76+SpdoFe6zA78xQByEJCkkMAER5 LK+xR87eAWy0vto+3pOWIhhLMIDc/H4= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=PLg1Ut3p; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf08.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=1731705941; 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=GmA2v8FrQkDc3PawrRu1NLBJUu3qRf/naCkvRhlPz0Q=; b=arf5lRrcykR3wC+TpghCbHkebExNuQzzWfwKljPbG+bw2KCIGmaruq2kAKbSRKWaJkjScU g+rffOro0DCrVg8tWzkpBNTBVuAytvoriEoEm74+UHHoYIrMvqhHE+Xm6N6WxFhnVaLrnX 8NUSyxRFuyQkIxSnPyHICqGHGnBLO8M= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id D434E206BCFD; Fri, 15 Nov 2024 13:26:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D434E206BCFD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706003; bh=GmA2v8FrQkDc3PawrRu1NLBJUu3qRf/naCkvRhlPz0Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=PLg1Ut3pMX8AIAjCAjy4bw02khMtlTmOdJICyDZ1qYDkIIeJUIA/Jl8Ax7qK0nzXA 69WpHciXaLS10XUYziHT/1hEXLH04lMhVot2lJeh/b4MNSDj4bBTIfL48/xVYbcOQX 4FHRZuPnT+9sZJ5HuVZVrIr57njKWIxmoNEf7/uw= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:25 +0000 Subject: [PATCH v2 08/21] drm/xe: Convert timeout to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-8-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-Rspam-User: X-Rspamd-Queue-Id: 979D9160024 X-Rspamd-Server: rspam11 X-Stat-Signature: 3fx9wpqhurq971ozhzayuwyhqp3991h1 X-HE-Tag: 1731705975-52058 X-HE-Meta: U2FsdGVkX1+xUMNXI4pllBHy6++GHmbA+P0Cs4C+40CSI3zyYm5tDTVD59+MdjeK7Hz0TmXuvykIQEcwI9z0/Rf2mthmydhv4/1Qya5xumuWClQurUnsRr4dcTwj4vbCsUeVo8TQv+3wBA/1NDFqdB+uJ/mnEVvpijbb8F0N90KeZ+uAtKfjKl83myJKKSXM2vm+1lRiRNS5Idut+poycu1F+aYXVspdUrf2GXkzC3eAim7oT2s8iTzbNZXX5xKUKRp/4IQYN4KJb/I6pP339tiiFUTt7Cfnu4INQuBDbRzBlNhPb5RRe65XiAalRO1O0mKvNKUbhR5Z21FnAcmtRD9X/wWfkyBrejps6MEJzCa4YUCjLlUNst/b5duKvsKc65TEhg6QMLyEtsVvzrKQzgIHoX2v0jWuSiKxDja2VTeDUcJR5pqUHG0QDD/lor+2+OhbPjCya5VmWGYSYOnAr3QlNgvHbuGq6dIe0KIx0CwEsH5/wUgWv6eOTcls84uqs23JBgtSym0oh3E6LVxsrv8nTgbv0R/U+nPumyyCZqY6k/zJvjODaHXIRAkdhk0UHAlwEDJr8VC79vVFhq3pnUSoaOqEKk5NOqdTAnKdSu7o1Yl1bXY7LmA7xh0HxjB8a9vWJUsrycYiCkYNYryL3U88UEcX0rz7iWoUTvW/ZzXlL/18eepaEIhqnGcN81E5IYwAW2+pOGDkfZG79NHkMGWXxWeW0VB1g8o+gtkQENNAsF/FAL1RS+Gpcgy8v29JfFVJ++kF02u5YAVykaymduEVZ/+xrQNc+rWXY6ckjc56hUbpmMy0V818jjl9dRgdlpk3xlne3PP15e3iSmrAsdKirqtICXA2rX2u+PHVrpRfIU3ekNVHQAJ1Mc+Swt737TO55nNi/ua+HsmQjkv18BrWL+vK6Ujs3ZInCdqtk2TOpFzz38LtuAZpNBy8p5VoerNYz5oFGgJUdvGgoGN wouNdBS0 PrvLdRtKmWeE02eENXi76sN54gFaRZwYb8Lk5hKZ+VLS2s+O11IgMJLahlF/rBmBHXB4GErpSaVdDg4I4Fgi5H37kjB5G81BzBw4kp9E1l5GvaE20HxzGatDc02CAQaQxpKcGbHoVvv/j3q5hobYkiBWoqHNUYbJiVUjHctrS+j74oJrDJ+s4Gy6cgwRpjqpkecsvJB6NCGqspVmnhv0F+4gvX0cZfTtmlEgaso78mbu/CezAqltnEhdcJKF7luEfez4kfIsYu1Rc5Sgn1/osmdaO2qemqZ2xs9Czjv8ScxH/t0xtbx06J13uufRVMQC4EvPbmUsH4YXBT4lGLXGzdJh6qnkVozjhWDyJ8FR6nEaX+h0iqWU6R0yRlD7FwcU+hQkX9ZMWTzUCMmrbdLmygpegZItqPEbgoo/busKX/HC1iasd5+6BfgZIGz2yu4O72mwt 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 --- drivers/gpu/drm/xe/xe_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index a1987b554a8d2aa42b29301f2853edddfda7fda5..bb3338ef4191e76128611eeb9531c9d2089db85a 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -502,7 +502,7 @@ static int wait_for_lmem_ready(struct xe_device *xe) drm_dbg(&xe->drm, "Waiting for lmem initialization\n"); start = jiffies; - timeout = start + msecs_to_jiffies(60 * 1000); /* 60 sec! */ + timeout = start + secs_to_jiffies(60); /* 60 sec! */ do { if (signal_pending(current)) From patchwork Fri Nov 15 21:26:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877132 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 A6EF4D68BEA for ; Fri, 15 Nov 2024 21:27:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 30BDC8D0008; Fri, 15 Nov 2024 16:26:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1D5658D000E; Fri, 15 Nov 2024 16:26:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CF5AD8D000C; Fri, 15 Nov 2024 16:26:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id AB8468D0008 for ; Fri, 15 Nov 2024 16:26:48 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 62E208035B for ; Fri, 15 Nov 2024 21:26:48 +0000 (UTC) X-FDA: 82789611744.07.2776763 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf19.hostedemail.com (Postfix) with ESMTP id 263B11A0009 for ; Fri, 15 Nov 2024 21:25:48 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=Qzjy8jhT; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf19.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=1731705917; 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=z5d0KiQ+mxHfS/dtMsbc4ttBd/lyUqPHYPOKqCM1B/M=; b=39nUDAeOYz5Yxc8YLAc9do36loJUAws1CHuHpe61QFwCCSCS74I4l6cIdizSN9+s681W42 X1Ay3eiO6/Y16cKeyBnPu/6pI2yGLKD7P0qpuS7XL1KolWMfYG2yJzLhwTZNglcTIUR9ex nBiJnhT10ofWJeJe1IZSngcCmXDTk1E= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=Qzjy8jhT; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf19.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=1731705917; a=rsa-sha256; cv=none; b=F8gfVf2s90rJPmhTj10dCUtnFh8Ej9pQ6W2xitJCvEjNCDQlDy+ugb/CrSb687bTkFEG9l meHP4tSe/RKgd3ChmMZ30d5b0ck/PQ14SpAboDYZjPzhs8EJuj8fkeGkwsLslRaeeZw+b9 REbcMmQ2WztbOBMV3d7aQq32xeCzcOU= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 17E88206BCFE; Fri, 15 Nov 2024 13:26:43 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 17E88206BCFE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706003; bh=z5d0KiQ+mxHfS/dtMsbc4ttBd/lyUqPHYPOKqCM1B/M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Qzjy8jhTqEhPkpbtMzhjO4pQ41WosaCc3rHXK7isQANvdHykkDrpnsXw2iEyDYrKZ bivctPWn2ufOhidk0VIZ+JFuRb3AziKQEhYq/E0XKlSC0nh99MCwSAdmHtPz39M16d mbtSMAjjgTqYd5iB3/X8WKQ1SIjBJafcvQ4z4Hts= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:26 +0000 Subject: [PATCH v2 09/21] drm/etnaviv: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-9-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-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 263B11A0009 X-Stat-Signature: eudujp3sdruskjw3qr9gbfjtubgngonk X-HE-Tag: 1731705948-598436 X-HE-Meta: U2FsdGVkX1/+dq5rBn6sEeACrPRQwC+hVpeicwJqj6vHPQf0XrEZWIxC21jqc2tlfZ4g1eQQNDGn1sCkbVojDBkoxte6RQqLiXxfP/keUjb7thlf6TFgqbC6mzoQ6H7I1ymWYo6P2N9hz7mHBrDctVBnWWY1tMwmgHyjvRA7r/uaHnVgZv0awFpQGoB//viHxuPL/zL4RjgbpYcQ/ZSTL2S27zWeX4yXBs3QQF+vIEiuKhq34rnk+0v+TI0wB97LY9QLNbgDRD4AWCCx+sHD9JerskyaZCTi/9CSOZDaN37JFJqslyjvKBoQhlDKxWKwBH5KjyJw4tBoWIInsljcsgcSa/bbn9LTRyBZJsKWvAuQJwA2I+8o2XUPfrde8zYGKtJoAZHbcyiNaTXL99TuetJnB7oolzA6Tb2+9Cm9yhIzNQ6h2cT2cWWE3fYTfI82JGhC8lpZPaKV+aA85y3vsSGbpOP2wh4TRWR44xdewgeD4WNCJv/FhhnrnnFrEMuTFgtHTmoro4r7zn7RiXkps67THE/yMIzwGNt2M18jYhYm6kpqTkQN4gF5gYQC8jXQVO1ru3ed8YB8KZCp597Ec5VnA5cY2+JmWIeiRjSR7WUAysV0kJ3aEdzoZh16HKBuqVVBjK/5gkARnlpNAIRVBbLBh0Duc2A2SUVHR2M4OD9tWlhJfRJ7B5jxnodS35KVoe7pQ7SH/MO+rRbYSiMYXDgeYIXxKyY7O6oAnZE1Qj/1ZatgPz6gtv6PUOBHr8mHkwE2d2e0t0+6LzkZgydmqMuXAQTdxRWQPdjiCAS1heNUQGD/zi5SUNKnpgVPxlTJJMDJ91NL2k1wQgFQibJymQ+CqdWzCN7SN/0FoIEEL3yYoTXt3lZ/8h7Un6NZ9tkaLHOFkC1S6LI1GijCyEFI3BXG5oT2+H74il6yxdTubLLyLXzLxATPr9Tjo2NsNQ2ic4PHDrlYni/uTzZYjC4 FjLQbXoG HRBMvsMbt0H6XNfN+ZxgarshOCfWWS9XIlQrB84EVY6aCt+kkstAb3IkQ3Y9fhtnUwxks8W4O4m79WSgiRKlN6/rz/98UxnjN7ciJmw7hVuovaIzacTVbFF+d9SveY1RmKsLJpyWjEV8xj41wtI+hX7k3orhxDrLMJhElqAc12NJuI7YnXVOm8QK3ESxHiRwht1Hkrx8vCxlE+xqiFBBK8DjLOOZF4BY1xfQhNKQLjLlb/f8XYw62O8ftDvm2NQxyWKB4bdevNUIqlmufQVVXLgrlt01UZqx0X3Y9Rz4a5b+7VCxPhAOSAAfCMDQnVrfj7YZc5Mw0+Pl3BJDFVPMONXTkr+Uo7xTDRKvIZRFnVyVoyYY0bLPEkDYSxpt2IUduNmyGKJk//j4tKPASpaYlHfz3/n9kZvYT9YFsP2zv5dui2lZtLXd/oj89/tVazMLyFKFu 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 --- drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c index 721d633aece9d4c81f0019e4c55884f26ee61c60..0f5a2c885d0ab7029c7248e15d6ea3c31823b782 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c @@ -100,7 +100,7 @@ int etnaviv_cmdbuf_init(struct etnaviv_cmdbuf_suballoc *suballoc, mutex_unlock(&suballoc->lock); ret = wait_event_interruptible_timeout(suballoc->free_event, suballoc->free_space, - msecs_to_jiffies(10 * 1000)); + secs_to_jiffies(10)); if (!ret) { dev_err(suballoc->dev, "Timeout waiting for cmdbuf space\n"); From patchwork Fri Nov 15 21:26:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877131 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 DFA31D68BD9 for ; Fri, 15 Nov 2024 21:27:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 053138D000D; Fri, 15 Nov 2024 16:26:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EF1828D0008; Fri, 15 Nov 2024 16:26:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C593E8D000D; Fri, 15 Nov 2024 16:26:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A2B898D000C for ; Fri, 15 Nov 2024 16:26:48 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5B37FC02BF for ; Fri, 15 Nov 2024 21:26:48 +0000 (UTC) X-FDA: 82789611996.08.E48234D Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf06.hostedemail.com (Postfix) with ESMTP id 1BDEC18000B for ; Fri, 15 Nov 2024 21:26:13 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=og1s1yT3; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.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=1731705827; 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=61FzWbZx8SVE6r33ggD3SgPEq3e2wgbU4/WDXmU67Oo=; b=QYSpCoGoSLxPutFDa2Bu8+7I/ikVkM+/RCOhH7IAjgDqsF2EzFpL1dCYuiwKGRTw3ESUaA oP/GpR+T1t5daHg4BcenAbtTMO7wdawf5qg4GIlF5Tv08j+JsYWT6wCGGUYJF07VwoA5zp 15kXMC4559joRazyL30Wyu/2ixAC7MY= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=og1s1yT3; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.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=1731705827; a=rsa-sha256; cv=none; b=iENVMRF5IriW8Dij6otYKdSnQqgGD/JBKOBQgpNks5dj/eNOgHf8FfFE1CfGte8WLHUXMQ ztwGQOtnCgrleqUzMWaqGPZNM6Y123rIrtbv22SngXub7bp1iLSREbIym1u8c4j2dv7dJg p6/C55ez59iwcmx1XgI63lMswx239xQ= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 499B0206BCFF; Fri, 15 Nov 2024 13:26:43 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 499B0206BCFF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706003; bh=61FzWbZx8SVE6r33ggD3SgPEq3e2wgbU4/WDXmU67Oo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=og1s1yT3C7qmGwpXC7BTRjelEYUxv+y/wT3aVo0+4J69TYgfP6zEFIO0yD8KBx7t/ 92Gtaxjx6bIrpJr767qFI9u3x1d6CtqjQKQq/ajvUlvLNnm+zvVjUogpR6HNP56Qc4 chNj7CUafA0bTcDqKth0w7CAJ55sYrNQyLSK+jvY= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:27 +0000 Subject: [PATCH v2 10/21] scsi: lpfc: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-10-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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1BDEC18000B X-Stat-Signature: qfiqw649zzypmtx8wbwjw6ncspf63dqa X-Rspam-User: X-HE-Tag: 1731705973-380079 X-HE-Meta: U2FsdGVkX1/ClJmtfBBUJIvV89vEN3J5C36319ANlvXMcwhudrZGWTxu7Af4qUzgadJyZU7xPsJ+RGYvy88c8KzjBamFK8no4G9pH8I7yW+gzOwsN2eIJD9Kdb728a5jEoHeGA+fNDdiBewSIHiv5h9DP0cjy86yID8LUKl+lwd5zYRIb2678HFDal6ftTsEJ10qwKGlLICGQAYcsgVFywlUiQBcPsHHys0cMJxukJWO+x4DejA/wE7PCx1sfTRp0fRIX3ZLHb3DQidjuLPk+X4LgKtduS26n9J2+FKU1rK2h8S6a23YA+diV88OLYWVJIXMXXbXLFLgavlOm+/mxpnuYnfIMKPmTyS8umd6ZjpSHTzbPHISBs2XHXQcmD8st8VQOpONGkFwAyMEASJ9Uf7atHRnUhrLgr0lhn5xdZo73JLjL+byAkCmwTIQ9kG6C8EUkklhJOrZxRxAhR+A8zgeXnUb+BxRtBsUsH/n+b0jNc0Am5stkFugPMZhcqrpFenoZ12uuLPS9UftgTXluhnqQYeI2p96UswEZwchWLv6FFG6pnT4/L9gpTgamWw6RioIYPqr8s6w+OKNJEE8FEBTZTFwpMTz4juZj6OBo5DcbtDdNUAdWQEOcmkQ4Spk3ByfrVqOEy8MrKv+f1fLrHhAVCN0VyzYi+MMEDAQDQi6tyeGedazy9sirsgux2tIlGFOoHvatIeLuItr1H2HtAVtpx36wg6w/tjeHnqxEpjZia9ACzb245x/TU1GZruIVdoXLKn7sLisPJqu9mRpTgeqfLuSdKI/kTk8e2wAUR9hv/wwP7tMls8FjtPmW9NLGQdL2eOiTS+87e5miCnoBL1y1eARH681vGZaRAlyQttYFeg9MfDeN7/8Mnr/g49ONeUIaeB/PpP7y6tZs63nJRx8GZyJA7sZ67HzdzWES0vJJiR2kYDZENI1ZRxG+NzhDBPhEbXku8szGvLWOCD wJcpWYx2 Jfv55d9Zrm568vOtMwHxF7rbF0pFoDwhSsvUOz7OobPybLpHiPI6i39GIc8flAJywxK6O5PvVPg2eSRNPhgLrkuQnFS7iNaMLQRPvoY3dOUxELdlKrvAeA0MPPYBHlbnUNlDqUTdUwzWW5CDK0B4fqi6ResvKrGk/mL+wdtFWLeciVGNOnzgVAtG34qCTJQ2rf8DeyHHos6P0JlWy3/FyyuZZGw2RajVA+KJ3cKslmoYxGLmXERrPn6lb2aX4TSbocdOcCbW4OHT+mYIBQwS/qMOZ1If8iOuYGauC1WvTrsaQSbvko6dnce+l6JyxglwMAS129zKqiPoGYJWfHvKENWyvfovMmi6X1I0wqxFBO7DL0/6wNKzNTEXW1XknuuBoEyw28uOdPPQw415So0uH3MGTaSuLzhaetsw21OZtcpHnQBXb7MiOGnKM2g== 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 --- drivers/scsi/lpfc/lpfc_init.c | 18 +++++++++--------- drivers/scsi/lpfc/lpfc_nportdisc.c | 8 ++++---- drivers/scsi/lpfc/lpfc_nvme.c | 2 +- drivers/scsi/lpfc/lpfc_sli.c | 4 ++-- drivers/scsi/lpfc/lpfc_vmid.c | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 0dd451009b07914450dc70f2c981b690557c1d8c..12666c4c7986ae0bdfaa5c8f040b4ea0be64550d 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -598,7 +598,7 @@ lpfc_config_port_post(struct lpfc_hba *phba) jiffies + msecs_to_jiffies(1000 * timeout)); /* Set up heart beat (HB) timer */ mod_timer(&phba->hb_tmofunc, - jiffies + msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL)); + jiffies + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL)); clear_bit(HBA_HBEAT_INP, &phba->hba_flag); clear_bit(HBA_HBEAT_TMO, &phba->hba_flag); phba->last_completion_time = jiffies; @@ -1267,7 +1267,7 @@ lpfc_hb_mbox_cmpl(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmboxq) !test_bit(FC_UNLOADING, &phba->pport->load_flag)) mod_timer(&phba->hb_tmofunc, jiffies + - msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL)); + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL)); return; } @@ -1555,7 +1555,7 @@ lpfc_hb_timeout_handler(struct lpfc_hba *phba) /* If IOs are completing, no need to issue a MBX_HEARTBEAT */ spin_lock_irq(&phba->pport->work_port_lock); if (time_after(phba->last_completion_time + - msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL), + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL), jiffies)) { spin_unlock_irq(&phba->pport->work_port_lock); if (test_bit(HBA_HBEAT_INP, &phba->hba_flag)) @@ -3352,7 +3352,7 @@ lpfc_block_mgmt_io(struct lpfc_hba *phba, int mbx_action) spin_unlock_irqrestore(&phba->hbalock, iflag); if (mbx_action == LPFC_MBX_NO_WAIT) return; - timeout = msecs_to_jiffies(LPFC_MBOX_TMO * 1000) + jiffies; + timeout = secs_to_jiffies(LPFC_MBOX_TMO) + jiffies; spin_lock_irqsave(&phba->hbalock, iflag); if (phba->sli.mbox_active) { actcmd = phba->sli.mbox_active->u.mb.mbxCommand; @@ -4939,14 +4939,14 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time) stat = 1; goto finished; } - if (time >= msecs_to_jiffies(30 * 1000)) { + if (time >= secs_to_jiffies(30)) { lpfc_printf_log(phba, KERN_INFO, LOG_INIT, "0461 Scanning longer than 30 " "seconds. Continuing initialization\n"); stat = 1; goto finished; } - if (time >= msecs_to_jiffies(15 * 1000) && + if (time >= secs_to_jiffies(15) && phba->link_state <= LPFC_LINK_DOWN) { lpfc_printf_log(phba, KERN_INFO, LOG_INIT, "0465 Link down longer than 15 " @@ -4960,7 +4960,7 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time) if (vport->num_disc_nodes || vport->fc_prli_sent) goto finished; if (!atomic_read(&vport->fc_map_cnt) && - time < msecs_to_jiffies(2 * 1000)) + time < secs_to_jiffies(2)) goto finished; if ((phba->sli.sli_flag & LPFC_SLI_MBOX_ACTIVE) != 0) goto finished; @@ -5194,8 +5194,8 @@ lpfc_vmid_poll(struct timer_list *t) lpfc_worker_wake_up(phba); /* restart the timer for the next iteration */ - mod_timer(&phba->inactive_vmid_poll, jiffies + msecs_to_jiffies(1000 * - LPFC_VMID_TIMER)); + mod_timer(&phba->inactive_vmid_poll, + jiffies + secs_to_jiffies(LPFC_VMID_TIMER)); } /** diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c index 4574716c8764fba6d6db103f1f287b7cdb87cebc..4185717f35defbde483b4ff9b1d71c9c3d86a07d 100644 --- a/drivers/scsi/lpfc/lpfc_nportdisc.c +++ b/drivers/scsi/lpfc/lpfc_nportdisc.c @@ -914,7 +914,7 @@ lpfc_rcv_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, (ndlp->nlp_state >= NLP_STE_ADISC_ISSUE || ndlp->nlp_state <= NLP_STE_PRLI_ISSUE)) { mod_timer(&ndlp->nlp_delayfunc, - jiffies + msecs_to_jiffies(1000 * 1)); + jiffies + secs_to_jiffies(1)); spin_lock_irq(&ndlp->lock); ndlp->nlp_flag |= NLP_DELAY_TMO; spin_unlock_irq(&ndlp->lock); @@ -1355,7 +1355,7 @@ lpfc_rcv_els_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, } /* Put ndlp in npr state set plogi timer for 1 sec */ - mod_timer(&ndlp->nlp_delayfunc, jiffies + msecs_to_jiffies(1000 * 1)); + mod_timer(&ndlp->nlp_delayfunc, jiffies + secs_to_jiffies(1)); spin_lock_irq(&ndlp->lock); ndlp->nlp_flag |= NLP_DELAY_TMO; spin_unlock_irq(&ndlp->lock); @@ -1975,7 +1975,7 @@ lpfc_cmpl_reglogin_reglogin_issue(struct lpfc_vport *vport, /* Put ndlp in npr state set plogi timer for 1 sec */ mod_timer(&ndlp->nlp_delayfunc, - jiffies + msecs_to_jiffies(1000 * 1)); + jiffies + secs_to_jiffies(1)); spin_lock_irq(&ndlp->lock); ndlp->nlp_flag |= NLP_DELAY_TMO; spin_unlock_irq(&ndlp->lock); @@ -2798,7 +2798,7 @@ lpfc_rcv_prlo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, if ((ndlp->nlp_flag & NLP_DELAY_TMO) == 0) { mod_timer(&ndlp->nlp_delayfunc, - jiffies + msecs_to_jiffies(1000 * 1)); + jiffies + secs_to_jiffies(1)); spin_lock_irq(&ndlp->lock); ndlp->nlp_flag |= NLP_DELAY_TMO; ndlp->nlp_flag &= ~NLP_NPR_ADISC; diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c index fec23c7237304b471e58194726ff7932b0010385..64d7060e0d4cb628c74c0fa22ece2b956155c1ba 100644 --- a/drivers/scsi/lpfc/lpfc_nvme.c +++ b/drivers/scsi/lpfc/lpfc_nvme.c @@ -2236,7 +2236,7 @@ lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport, * wait. Print a message if a 10 second wait expires and renew the * wait. This is unexpected. */ - wait_tmo = msecs_to_jiffies(LPFC_NVME_WAIT_TMO * 1000); + wait_tmo = secs_to_jiffies(LPFC_NVME_WAIT_TMO); while (true) { ret = wait_for_completion_timeout(lport_unreg_cmp, wait_tmo); if (unlikely(!ret)) { diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 2ec6e55771b45ab70320a9ad1934d5ead2371d4c..b6f19c123e25a00c0eb4444476a7194d6b045824 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -9024,7 +9024,7 @@ lpfc_sli4_hba_setup(struct lpfc_hba *phba) /* Start heart beat timer */ mod_timer(&phba->hb_tmofunc, - jiffies + msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL)); + jiffies + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL)); clear_bit(HBA_HBEAT_INP, &phba->hba_flag); clear_bit(HBA_HBEAT_TMO, &phba->hba_flag); phba->last_completion_time = jiffies; @@ -13335,7 +13335,7 @@ lpfc_sli_mbox_sys_shutdown(struct lpfc_hba *phba, int mbx_action) lpfc_sli_mbox_sys_flush(phba); return; } - timeout = msecs_to_jiffies(LPFC_MBOX_TMO * 1000) + jiffies; + timeout = secs_to_jiffies(LPFC_MBOX_TMO) + jiffies; /* Disable softirqs, including timers from obtaining phba->hbalock */ local_bh_disable(); diff --git a/drivers/scsi/lpfc/lpfc_vmid.c b/drivers/scsi/lpfc/lpfc_vmid.c index cc3e4736f2fe29e1fd4afe221c9c7c40ecf382d4..14dbfe954e423acc47d1b1c80160ff193783f500 100644 --- a/drivers/scsi/lpfc/lpfc_vmid.c +++ b/drivers/scsi/lpfc/lpfc_vmid.c @@ -278,7 +278,7 @@ int lpfc_vmid_get_appid(struct lpfc_vport *vport, char *uuid, if (!(vport->phba->pport->vmid_flag & LPFC_VMID_TIMER_ENBLD)) { mod_timer(&vport->phba->inactive_vmid_poll, jiffies + - msecs_to_jiffies(1000 * LPFC_VMID_TIMER)); + secs_to_jiffies(LPFC_VMID_TIMER)); vport->phba->pport->vmid_flag |= LPFC_VMID_TIMER_ENBLD; } } From patchwork Fri Nov 15 21:26:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877133 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 D8FDFD68BEE for ; Fri, 15 Nov 2024 21:27:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D45ED8D000F; Fri, 15 Nov 2024 16:26:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CF6568D000C; Fri, 15 Nov 2024 16:26:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AFA6F8D000F; Fri, 15 Nov 2024 16:26:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8F5348D000C for ; Fri, 15 Nov 2024 16:26:49 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 4FE521603CE for ; Fri, 15 Nov 2024 21:26:49 +0000 (UTC) X-FDA: 82789611786.03.EDA46C0 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf12.hostedemail.com (Postfix) with ESMTP id 871E64000F for ; Fri, 15 Nov 2024 21:26:26 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b="p+FtT/4X"; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.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=1731705828; 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=Dy1gfF2eVFD/Tcz72rvAOzLjHn7ysyv4CietmA0q798=; b=RN+teaLXhTHzc6Xt4GzEfKOLMqZ9P/3kc21lozs2OIuAsmw1xWjnMZoqrepsx6mmaJUzyn F/M6uKZ4JuJKY8J0yB1MwRfH45nYsy1mJzmEFgiA1B/GqIZKmUh9lWGkV+fmeO34utklem Y0M+aUKfy3ebtTPtnuCQJS+PtjlJ8kc= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b="p+FtT/4X"; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.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=1731705828; a=rsa-sha256; cv=none; b=n9q4jOktQdjOEACwpSBZqQlL8v9TrDdm84RFVpbxmKP94HNc6LOygKrTDHkOf4uv6QVKEM eEtqGQwXUbI25AqMJmbKO7u2ulNMfowRP1ZXDbzZkpzkhvX5b/1Jdc3FI6gLLgcOLJmdT/ 9bwVte813Cwry+e4kHCh4l3udzVETUM= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 7C145212B5B0; Fri, 15 Nov 2024 13:26:43 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7C145212B5B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706003; bh=Dy1gfF2eVFD/Tcz72rvAOzLjHn7ysyv4CietmA0q798=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=p+FtT/4XQtszN++J1IXw9Qg9gEyc5H8E7fVGDQyv4rc8vpXVJrTKn1ZKVJgsHZbWP rjXuixLOb+i3KZKhonTBwFBpoEJxLum/RjHrON0Ke//ZO6XKQOf6fpWCnO2rTRIF8v YazfwYiTUNbn8bgQFWgiljV9mm+EMtTeilLEfIdI= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:28 +0000 Subject: [PATCH v2 11/21] scsi: arcmsr: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-11-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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 871E64000F X-Stat-Signature: 4bqucwimxrguf11wobkbng4adx49953h X-Rspam-User: X-HE-Tag: 1731705986-344207 X-HE-Meta: U2FsdGVkX18HOOCyAm4yBE7Veps2yvoVrxN4RYLB/73LnFgzPSno0kOWitWNFR5PEkrpSlqLcCPX6RfzECuIrhhlRnMEm775H9kZvzb8v+iW9vX8T/GGO5+NeFk2IwT2/yG3w/Fgr6Y+CfAl4wqi6kf0fo9pWYA4y1T6Pmq5BkhJSB5J7Xlgs4WXspnFJtuLxi0VgFHCEMZ+7KO8Hy63n9s72jGZCfT7yvcUn8a69h44m0z+GtWZzfQoJB6U0G9+bBqQeRBC+fnmcTeB1k1NTRfmlPA0+69NUm4//26z7gYNrXyaFx9eBCBRK6Aewkj/cc81jejRvWvRlX3yU37Twt475i/t1fPzk224mqMY41j88SS3GNCK4R/mf46yDq5v5lSnKpeM17xWvnJshMtTnm7x+Yzfc7uG7FgWlxmMq6LNLyf7SOLksL1UvdgEZkWfxZFe5qvPeVKJfe9Us+GPZZ82lgmBd9eeJ5r1RyRk+saAkymoZpeEDHJZSkIpNV3Z45WV7lclMUiT+CnwE+X3KCutmQLSPnzcpyYo01HsSHd9ATmkgYYyPhi1dK5+jJM5RdhiLmwRvghmkDm3iVzgoCxqFt+uVWxKvS0cdlZJ6OmrPCBbgK7BdR93jO6nRMV4A2uBOQkZQ9cCePJT4OyGqyfhx37fClWrfniiUaHCS1n4ZVj2cJk/TUwverxynmGB1ThI/cJf35rwB7A29dhThZW0pYjLOT1rBRsZd6D4+PtjugQYEBYX02QspHzpcOWL4FnpPZxKhDgYS4cTi8i9n6s/d+WS2Us97As1k9ReC5xNLKCaLD9fpRzrKpxhT7Y6o0qEbezAgT4KFFDRb6TioidOKPASe+RIipVWPizW1VEm+GvBOPMoWxLkRVRsV8LKWEqXFt+4bKAX8vFfHSpQQ4qvERKTg+spXBPVo4raQksm0lM3amEMeSYX1GnG7m65F2dqdh1FSd+dlAY1Ehx y4Xp2of6 PMI8gfO6NuR3lFHI5ldv7aNb/8XYmaknNzfptvtvpuYYek7Ca7bSDXHttQQss26fovB8FIZ1g9K1bR/Hny8FaPW72ZnWNaUG7A3eoKey14R059WiZaYBDNNw3tIAxo0Z2Ddb4PsGNfPkpVRiKCkwcyUByc+56mrYDd8yLu8Mjxp0YutUAWVWbpsZupx3mU8UH6ZjYxcY367PUGG+mzugFvyvilFwWFnqhxwBhQ8n++5D3mZ6oLHALTlEIvFFbuxxWwvapEylbfKJxRRC9ogqK6FwSirX0qeHlLwJQXS9M/kBn8BjrsNcA3uNx21iuPrSuhIb1ZU+fR6CBu5p2ioptdfvoKDx1pgu2Xcj3zcu3dTpXPKHp1uRdQvWKjRJsKocjqqTduDeKO30XEtlBK1YNB+L8c2PI0a0aJP1g7oe4sIx7e4BYwKZRTVCurQ== 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 --- drivers/scsi/arcmsr/arcmsr_hba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index 35860c61468b02cdb59aa59376ad5ea9be60d12b..fd797e2785490839713f9242014f0adefccc6ddd 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@ -1044,7 +1044,7 @@ static void arcmsr_init_get_devmap_timer(struct AdapterControlBlock *pacb) static void arcmsr_init_set_datetime_timer(struct AdapterControlBlock *pacb) { timer_setup(&pacb->refresh_timer, arcmsr_set_iop_datetime, 0); - pacb->refresh_timer.expires = jiffies + msecs_to_jiffies(60 * 1000); + pacb->refresh_timer.expires = jiffies + secs_to_jiffies(60); add_timer(&pacb->refresh_timer); } From patchwork Fri Nov 15 21:26:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877134 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 35E2BD68BDB for ; Fri, 15 Nov 2024 21:27:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 272E58D0010; Fri, 15 Nov 2024 16:26:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1D71D8D000C; Fri, 15 Nov 2024 16:26:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F1DC78D0010; Fri, 15 Nov 2024 16:26:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A89718D000E for ; Fri, 15 Nov 2024 16:26:49 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 65362A034F for ; Fri, 15 Nov 2024 21:26:49 +0000 (UTC) X-FDA: 82789612374.25.7DBBB00 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf15.hostedemail.com (Postfix) with ESMTP id C2AACA000D for ; Fri, 15 Nov 2024 21:26:00 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=osivBUZm; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf15.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=1731705828; a=rsa-sha256; cv=none; b=owd4hS+VimTUYgzcBMX0eYp1n99dwTjt4fyQvyH/GnNAkweP2fynSFoTHSbHdT7FAspWFb YQ1jlQ5Q1gzg5iUcPEQsDARjVXaB3N5kL637CfobmYE/O+9qH2FbebOpWsL2z2GvZhsvTv 8UdJFAx16+ota96XfsZfjc0sNrjtouQ= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=osivBUZm; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf15.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=1731705828; 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=KRAKVqkmYHFKsYpIbPFWmWMGYVvfzvIpOOiOmhExdwo=; b=BePAs1GJpb0tuFOwu/EyYVZUpsyECrELR0jUK8N2U7hqVl+Ao8W1Mq9NTGBJBPBAgPzrCE TYD7c8pMLVlZcADIWiT9r14auKXraHPaHzlJ5STPDpqyVIzKmzbFXz7QHaGXddUnQMjMsZ ph9Ng0dO2dwFUGJ2un1iWfxyz70OJ8A= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id B08AC2174E41; Fri, 15 Nov 2024 13:26:43 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B08AC2174E41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706003; bh=KRAKVqkmYHFKsYpIbPFWmWMGYVvfzvIpOOiOmhExdwo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=osivBUZmIsQLl2jL+ZDQlIu+P5dhzLcQCyWk2W1AvFXRp9qFe1ScWwkuHagBoxYIx W4f74U2umtM+/izGX31p0lh8kwNEI1l5coBYaWK3pMcVhuLLHE4asQeuLREQ90Mb9z ups8j6Ezd0JumeEqkyYkZ8sddPZGhvHCQNewXQdE= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:29 +0000 Subject: [PATCH v2 12/21] scsi: pm8001: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-12-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: 713k36usu6mnnn7y5qix84w4teknagm9 X-Rspamd-Queue-Id: C2AACA000D X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1731705960-966478 X-HE-Meta: U2FsdGVkX1+Z1X4deMsVBjKBWdqUhq5mhgMMr9U8E6t7hYjHuRkIc4FpmEn6kkhpuJXHQjTrP5IyppWcnN4BQ8f8agfC6nQTwezXCdW+X7KzKLDU3maQprwg+geI7zWWWIylPKxbc3QDGt+2Id4hvyy0TG+mvDrJwercRjep6Wy8xepq148NQ6My73TiJMNWISDG7adM6Qo687kGQ29fqy6WN+mFUhqIoiX2WD5tkr76B7ZoIKBSID61xxgaUMUlhSdasO3Rzn/HUk3x1PcbSytNJB6eSIeifPTk9xoNtgsRQ1plG5h+CO9/iyEOSwPXAhDzylzpyqTyQDBYXj7dB6P56EbPTb6hrrWG1UFcBsSZWA0RKGeaIH2bH11rkrG+Z8zfVb8oQPlfdQhWZjYb46HPqFUdv/bywgUFOPnMgiW0N3QcvSBqie3TZCp0hDdxVtf9Jk/AhGUIFne6kkdfadMKtYay193AbXNxo56hVjBoRRF0edCr99rsmCdmjkNuc/Z4PONlrHOpBnXTkNCk+lYPfZRSHMLfVzb1W1kGp1kQZW62+owSornEXoVolsXggg06WaAEoviuNxgkfS5vePBTId3AMkMkRJSdqw98qxtNCM67UzwwtfF4ckJKezO2MCyKNjrX0rZGKDEWftrwWE8b2FPoJrJfsF7QGimYeJV5kuAyW71ojEU0TMjG3hpkRL2dXWIijGUlL2t4APDpRZiipPjNu3CO1vomsVw3xh8mZlnZbOHI0c+xcSb1KsVPuV+1g3wnt/djui9AgzjHOBg7qHx6yBQxr+R4M5J/BAnU6kfLh2qmJRl9wZpAlXGnjsgpNBRtENh0J7RcrQJ9zHBxrEBNL0QtI0T1Qw4JGjAf5kFv9cYjoHJE4DnGgqMQFadrv/7lfHaosaQmfH7kqvobK2gSkphgDiwXrj1jMQkm8UKGQ1sXznjfAo/bpFdWN/a5paF0dEwlp4Il0O+ kiSVGHRK aRkIq/bdG5qRq8jsRkOVlJq/mwe+2QYUCVL3Ta5uZ4PpZeQdLPX4Xdg9xwSjxdHybYVaV9Yj8Jvuz12Mdo7YASg5ENLQLGpt40Be2avMV02lcFkW1Cp/ZMEucE/qygJBI/FwjdFqXRX9TNafb0eJM/vVrAwF4GmiDqfM7Xkbr1WckzmA5K068W7yU65U2vc8Ycw591az62NdzBrMKmVFnKsds/KPXls0NKK9cMeC8WOwuLPCXgNDtwegMB2HUHFP9/4dNV7rSH1IBG99sbDrHSynLSoSEka6uNi6GvjffP0Qj1CtH3hFEzUBjuAUzbQF9LDiTTqLWrIm+lB4lCBKWt15B0dCRxQu9/5fw34ZGqtng5mIKxIa82c5+FsP0/wdTpls1atMCVLpLNdq9o/+mz2GrEbVc05kVANhnWvlwsGHwYD49pfQv8G6AxbffXCtW3RK9 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 --- drivers/scsi/pm8001/pm8001_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 33e1eba62ca12c2555419197ecdbebad817e4a6d..be88890716cc152b4687edf5e204d14bd177e188 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -734,7 +734,7 @@ static int pm8001_init_sas_add(struct pm8001_hba_info *pm8001_ha) return -EIO; } time_remaining = wait_for_completion_timeout(&completion, - msecs_to_jiffies(60*1000)); // 1 min + secs_to_jiffies(60)); // 1 min if (!time_remaining) { kfree(payload.func_specific); pm8001_dbg(pm8001_ha, FAIL, "get_nvmd_req timeout\n"); From patchwork Fri Nov 15 21:26:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877135 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 99C45D68BD7 for ; Fri, 15 Nov 2024 21:27:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A1A98D000E; Fri, 15 Nov 2024 16:26:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 729F08D000C; Fri, 15 Nov 2024 16:26:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4DF0C8D0011; Fri, 15 Nov 2024 16:26:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 2332D8D000E for ; Fri, 15 Nov 2024 16:26:50 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id D62CC1A0452 for ; Fri, 15 Nov 2024 21:26:49 +0000 (UTC) X-FDA: 82789610946.17.B022113 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf08.hostedemail.com (Postfix) with ESMTP id 9837A160018 for ; Fri, 15 Nov 2024 21:26:17 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=eAVIrYLN; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf08.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=1731705944; a=rsa-sha256; cv=none; b=hdtIE6Ujy2lGX4Jv2W944xhWQcJuYUXf2bd+R14efyzZoGtUJm6Mlg10qdyGVAAjklHFoX wmB2L5Ute57tK8lLjK+1GPj6eUdRv+SzdfZAHnTEGAjKqq5euLybyW7hNxTfvVMZdF/Rc3 ecdKOq4BbtE2UGS+vRvfS1+LFsBwg/s= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=eAVIrYLN; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf08.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=1731705943; 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=pCX0EpdqmyNkdZPLk4Z0q7m89NufhvHb1Y+2Mrmnnrk=; b=6s08okaRf+lDL98AgFifHAmWSCvM1qlU8SVYEyLc/Wphuvdbt9PgciJLhL04UE2Pie+3DR m+v3SRMZkqeH3MtPJgJ1QnOhRwtuZzmqBPF3IXGwfoL20j+pzf+BzHmmdBXwU2/hpOcRfx ue/9AJ7aO8MflrEs5FM792Xhr7qsp7c= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id E651E23718AC; Fri, 15 Nov 2024 13:26:43 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E651E23718AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706004; bh=pCX0EpdqmyNkdZPLk4Z0q7m89NufhvHb1Y+2Mrmnnrk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=eAVIrYLNHkRW1opV+l10sI01k9fp5RPobV2nEm7OQtZTXvL1OZpViQrABNURt8i3R Lt5oz4EgCq0BgTDEpnRIgtHazGUHt44mhOWeQa6X66HXQwFE3odFdSj0nTsElRySJE uoqOVSbVkxhvj88d1jkAwyWIgOOXRrS//ir9JXro= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:30 +0000 Subject: [PATCH v2 13/21] xen/blkback: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-13-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-Rspam-User: X-Rspamd-Queue-Id: 9837A160018 X-Rspamd-Server: rspam11 X-Stat-Signature: f5fgzui6rde34cwkg1kkwtjxfp77nbee X-HE-Tag: 1731705977-299301 X-HE-Meta: U2FsdGVkX18rf83476GncKeJdHZekH/J6dP5nQ72rXOJboObSg59GbD1YsWWMwSO5nMyhRvtyiV53Xyc/q8/bA1PkjqrODV/x4E8Mz/c+RY/VSXYMOHao46j2ofmjrCnvhnus9jdXQ4VbPu86cuUky8uEseep74Ej5EUm4ERt5bR8Q+uea5Fsw0wlEowX591u4GT62mC7fz5hsGLiuJbnUU9BtqQvuBGGf8dsufGBCmzX2iEU+FwnCiGf6yexQ8Ju4jA4PpGF8jLEqAWYRU2gXCEPUMdvS7E2xgDuzyTHceiqrXQ3jI/jJqsyt5mQ79SMh3uRevf2q7qgF7o1xmm0PuxOmHo5gZr4kCmPSeFl3a6XacpWdaMOxD5KcFoYVk4VdHxwkXdPAMuipnMzVSl86jyL91pmWYT/19AMCTDpsoZmAmKHlXXE+fqrY6xosaY5t9tUNNn/UkVVDveQyLvfFzeNvQPyDTuhCwTu3WkMcsC/rNmcNzd+DfbTtcqyIUiR24WmSCgzcAPRi6yZZ1kRZ2vlXW/9uwV4j9k3hiLvuSFRjtSK+Kkj19QlHa2NsuusS54D0iQLb3HbDY4gstxQTuP0nLPWeFWQt63o/Y5IYJnytC5gESBcqdZcN47VkFcfej65SyiNuTatsP/VcdsrW7kdHzK9Xfh26VIx/SiVsLAjxXi6qjAocxdRRPoEMvwHomlGM/gU5q8iJQXqgKR4odis/LH2cAbcWC8ZwdVxdDlK5Q4l8wDxxrqTPsSLmq60Qlc0NxhsCbPe3/CUk/iLTMfjFWDjqk8pywkkB/6nEyysphfOSGAYuhEB9hU7QUTzD3YnpavteRz+Kzq9X/DOihvkirCla7XUNzt/KHY0zt0ydEsbJaLMksLOhGYbwT2RidC1ZUXDV+GnaTEp/PBWJJllMd69AHm5rcp2E6KUV41osZK6VJSwLqvyPnKn944XrN1WTFhF6nVpSYMasc omjIoIfw VdmVYotckmEQz/NdpFc/4a6AKWRIgbwxuOZoMe+s47o9qJVoJCLkwZ//hu6hZ3P8aFg3QrKTMOzZf5E5AxyfAnq4JCJJDN72GQBu8/9trOwR6iTsEfI3gKIYgcYmfXdW/GVQ4sq0hQKV0v6JuColQ+ZULIL6Pk67qq3l97v+4lID51nf1GIuVaApi2DwMNA7No2TNmbsEzSdH+84Xi+oQF0MA6uGX1q4ODN5skO69Q0auFxbwIfa0w6mL2JPEvIQBrcU+rUbEI2ARCCaLmL2l3LKxpwIWxqa8iS4tGKPxqku9EZ/hKkOQrO75KNL4Ff8+LDO/E2C6Y+S6F5Hd2vYXFaFgKNNCaKyq4yBOXjLNcPADvrWRZm7rh9VbYj9XKYpm+N6HVQniLW7WBYdpm5jcHv/0yLgmIx9Mg8s89tHsT3NPsUmqZRqWUN/M2gdrH9q9hkjf 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 --- drivers/block/xen-blkback/blkback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c index 838064593f62b75f3d937c0c041ea78dedbbaf84..a7c2b04ab943de9cbd69b596aad177a0534f7762 100644 --- a/drivers/block/xen-blkback/blkback.c +++ b/drivers/block/xen-blkback/blkback.c @@ -544,7 +544,7 @@ static void print_stats(struct xen_blkif_ring *ring) ring->st_rd_req, ring->st_wr_req, ring->st_f_req, ring->st_ds_req, ring->persistent_gnt_c, max_pgrants); - ring->st_print = jiffies + msecs_to_jiffies(10 * 1000); + ring->st_print = jiffies + secs_to_jiffies(10); ring->st_rd_req = 0; ring->st_wr_req = 0; ring->st_oo_req = 0; From patchwork Fri Nov 15 21:26:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877136 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 D2BC2D68BDE for ; Fri, 15 Nov 2024 21:27:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F1EB98D000C; Fri, 15 Nov 2024 16:26:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id ECB348D0011; Fri, 15 Nov 2024 16:26:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D1DF48D000C; Fri, 15 Nov 2024 16:26:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id A1FA08D0011 for ; Fri, 15 Nov 2024 16:26:50 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 65ED81A045C for ; Fri, 15 Nov 2024 21:26:50 +0000 (UTC) X-FDA: 82789613130.05.46BBE29 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf19.hostedemail.com (Postfix) with ESMTP id 39F9E1A000E for ; Fri, 15 Nov 2024 21:25:51 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=kgi+n57x; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf19.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=1731705920; 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=YTcGWD0h0ZDgyuZTU2DPl12ZGyATdibDkhzA92Hlf6s=; b=rMqMjg01dABLTLoZsWnerPQI1zdgbJ3cH7vwBJYb+TJ4B5xeVgcqw8m+q+q2QO8PPgfOfX h8g1zElayfDJG2l+NkL/R2iGuZPjxcnMuUp0S/Hvtua8U/XZq+w9hn2c/eypeErXMssUUJ D4AQxyYIlBBB9bxJX7jjO61nQx1m+yo= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=kgi+n57x; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf19.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=1731705920; a=rsa-sha256; cv=none; b=eujiW+P9AaJVcB8Z07ygIua4ue5ajjwS+bZR8oG4LegPDN0qvGlGLnQ9WGxwdeKw2YYWpC bE8T3C0uYOb91cy6PJEjajVNDAO93l8+Htx2VVXVqrfaWneDS6/cHWZvLrIV/2aTlZp5bt z/UGiL28xoddbPb9Ad9WZBfW5ObVa8k= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 3D67F23834C7; Fri, 15 Nov 2024 13:26:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3D67F23834C7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706004; bh=YTcGWD0h0ZDgyuZTU2DPl12ZGyATdibDkhzA92Hlf6s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kgi+n57xgjrI+4Gqepq6GlPnqUO2pihV1Dud4yQ2c1OZjf2P0xDWwr3M3tR1eBq1a vDVbKDgW5iQn+Dgdp88SCgfK7MyuioOzZEhii+W9EEl6/VO7bUxJqfEKNKtLWDwsua 4MilbVg5zRzDEtFWaobQFW22HSHuxVekSW69j0Ag= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:31 +0000 Subject: [PATCH v2 14/21] gve: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-14-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-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 39F9E1A000E X-Stat-Signature: 4pgm5f91cxcuayit96n63cnppw1sho9m X-HE-Tag: 1731705951-202696 X-HE-Meta: U2FsdGVkX1800vPPwj9o5oF5kWz5XdV4zXLHFFrhonC6vg8FgNZ/43yChSwz1Qs3eSsd4iyxwmny5Uu7Oa+kRB6j3D32kLV7VM9fGU9p0kpZC25tZsQVyB+KpL5etWk1DdBb/oiPhX8JjRkKZjgZbwFy4Mwcf9+joWbN9obmACDHTdT4hDS+QoGh/HZ/xDYvydsLjbShu3yzqyctjAoMAyavywC7PL5JIzNKx/xi4xWu1vDlC2bUFnJcwtYvDZNNBoXFqP7sx2N33cF3g7joGEH+vB0mIBe4lBbmsL/m3le18lW55IFTBPQDhMgYSeACPwzLdrALmacu4KcXVIbhU5m37vzFBiAfq+qcu3BmOeMMcWsGbpyxzDV2Hy57CWWmXkNm7BLsAeoVV/r7MgsoIMtJq0ty78iJwr9BjucjH+RKlI/mnHsEOO/fb/9b1DGc5vUYpDOGLPw0p17Kf4ilE4y6RJ6CUoqxXTK3cHLB4V2SOWML2Cg2VunAwwCEdW46u+WmmXkGALP2cHAYotxMtIqqBQ2RnXSJGH1BvvsIuWwLTzDFlvEa8If61TguTTdUXOJd2fVTSP9dq2yYmEuRk1ZX/DpJQ/qdVa+cvam2OYSbRd1HVErUz677dEKaPLDzJkLak02suqEP5vLuKlNmNsl3nXkhCs5X6/fIR1ICDqpzLFFH86ccTWfgkftETOkhfSld8pmOk09hesK0jqkxk5bq6PxxTBRuvTmSrvTyxvs6NJe3fTfp46gbUkAMxtwIb35VUkXRBxiA9qCRNpalZRuuj+iKB2cf0jZBxd8UbAaFBlqpk6GHYgTaY5ThskTuB0GPoc0r7HcQD2v92kLe5gk9t8IP18ZZ8iOG/qy3S98lvin/s/4Aki1tGP7mwY7KGqtzDlhrzIhkx8f6OIG/WmQ+exa5n0ZAYyuLFI5NhV50BoYLRTygeBJHM8nlyYneToxBAa7hZUutyeuUJ2t kCZIhZx/ 04VJaU4y5cKEG7m0ngPeEnhC9UDJJXruvIq4M8sAM6ByrFhwZBCSuz1P6ZWZVyuO954zMKmSJMF2Es+2kPlr5eAfB65Lp0y3of0FwJezKoySeCeCZiXD1z7xXCKEPkY9a3uHkPHMh1T0f6CG61BDE4XnnXyjMBj3GDwGva7H/Zcpt7rz0IsJLt+jTo8srq3JhZHYdyFMlrTJzktOUPEKXriWMTRBlXKhq8IgoWkCWG5ZZdOJU+jceoXe/wpQNztURu5M42FQhyRRg7OVKFTN8pn6MVd7TqeOfAUle9rgDSLQmQt+b1qLCL8ksnDoEpQV+JLFS/cbqen0K9OQ3w8TcGXkyOe7kq+bAENt7ezC+KVx7/dWQHc+XDQOh9KOXx9NvMYMlCxtOqPZbDXPxb02NNit3LfmqHODVe/PmGFQ9xcF+VghxX/J9BfG1DHj8z7rzpMNe 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 --- drivers/net/ethernet/google/gve/gve_tx_dqo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/google/gve/gve_tx_dqo.c b/drivers/net/ethernet/google/gve/gve_tx_dqo.c index f879426cb5523a7e150f363b5e57b9d472b5817c..394debc62268aadf2579f9b516e045cb48287e7c 100644 --- a/drivers/net/ethernet/google/gve/gve_tx_dqo.c +++ b/drivers/net/ethernet/google/gve/gve_tx_dqo.c @@ -1146,8 +1146,7 @@ static void gve_handle_miss_completion(struct gve_priv *priv, /* jiffies can wraparound but time comparisons can handle overflows. */ pending_packet->timeout_jiffies = jiffies + - msecs_to_jiffies(GVE_REINJECT_COMPL_TIMEOUT * - MSEC_PER_SEC); + secs_to_jiffies(GVE_REINJECT_COMPL_TIMEOUT); add_to_list(tx, &tx->dqo_compl.miss_completions, pending_packet); *bytes += pending_packet->skb->len; @@ -1191,8 +1190,7 @@ static void remove_miss_completions(struct gve_priv *priv, pending_packet->state = GVE_PACKET_STATE_TIMED_OUT_COMPL; pending_packet->timeout_jiffies = jiffies + - msecs_to_jiffies(GVE_DEALLOCATE_COMPL_TIMEOUT * - MSEC_PER_SEC); + secs_to_jiffies(GVE_DEALLOCATE_COMPL_TIMEOUT); /* Maintain pending packet in another list so the packet can be * unallocated at a later time. */ From patchwork Fri Nov 15 21:26:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877137 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 44EDBD68BD7 for ; Fri, 15 Nov 2024 21:27:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CD43F8D0012; Fri, 15 Nov 2024 16:26:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C81F38D0011; Fri, 15 Nov 2024 16:26:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A84558D0012; Fri, 15 Nov 2024 16:26:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 88A588D0011 for ; Fri, 15 Nov 2024 16:26:51 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 36B7D140129 for ; Fri, 15 Nov 2024 21:26:51 +0000 (UTC) X-FDA: 82789613382.11.CE55567 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf06.hostedemail.com (Postfix) with ESMTP id C91A518000B for ; Fri, 15 Nov 2024 21:26:16 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=oW00wAHd; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.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=1731705830; 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=tK04utDeNCseuvXH6irwCudSXxUYSbugurANWfhj/RA=; b=Y1jY48cWrx2EDnpQC5iUZCSOuLt4CUIuRJZrDSpMeJhHRLoP4C9nIiXQeik9bZKqHoVrQS EdKcnZt3T3NmqeS/UWkumEjnFKd0Mv0FWAWvyCCfRpr/X54lGe8p3glYbJ5C5ooEGzrW+u 9SP7GAuljG3aEie/cR+to0xAhig4xYg= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=oW00wAHd; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.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=1731705830; a=rsa-sha256; cv=none; b=2BlaYAgmo7aYpCSPQLpgzqvKTk3xvaWjC8rBRfzNPCVUsXcSiJ7JFBpseeIUpQNXAVejL5 6EO9/6WEh0hT0IVgt8nRPxqN9nXTcBHrIwldSvUkZBO2XzX8IFGDdGT7T8/7v/xTEmju/H H1l3s9QKNv2/eHrPbZeIafo5pZr7M7M= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 750BA2383EC7; Fri, 15 Nov 2024 13:26:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 750BA2383EC7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706004; bh=tK04utDeNCseuvXH6irwCudSXxUYSbugurANWfhj/RA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oW00wAHdTMgD3/TVNA1hZU5X5M4jnpeZUWcg0SOafgo7IxhPi77X6wrerdoxYG1Qb /d2D6KpobO9ihzhc6ZJVrlOxlz5U66VAL6WTsDlCtIaa36R7/WidCC3/10uBG5CLMB DbALShHl/X1H/ANvKovErIH2SEM7ywfupUlqJSTY= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:32 +0000 Subject: [PATCH v2 15/21] wifi: ath11k: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-15-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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: C91A518000B X-Stat-Signature: 3kqd9mfrowwzq6nh77s3gpyh8igni8bn X-Rspam-User: X-HE-Tag: 1731705976-931653 X-HE-Meta: U2FsdGVkX1+c12b2oKsYQYWc4bNFiOezEzMTSax/UMkoeTmetweJ+YCkDJvDHNR7hw8yqbfuHXJrGg/GEs8pEBFqItKu8suBvjvE0sVFYVUsbBdrHji0f1NhqSyGxH3hmGOxtsGQU53l8bgMlRuYzqANBOBfl1iePS9QKwhbm8DcAxdL7I+w91quNZtnAHgk4n7VuAtmIsF6Dc4sO3qsO8/v8h1uIMWvUvX+rgneIScYLOlhusBZFmTV/1wN21RPKzeNEgv5SGXmbSfy4BW8a3vg52aMcG1+FooPzWDa4XkAhaOZaDPeAdT7Yck2wm5tjOd7UauVujjydv4w43wajL2+npNMxKQBdSMr0AQsnx0LOHvcoaHTs7pi6C9BdYvsW4MQfxmKpHN3zrd3pBtJztLKbibYbwXyMX1eXtQ2dAlgd9rnQTpXnuvejMFs1CFG/sFEc2KqRdAVF/FLzgJTNBhhi3cvHFuJ2b1DfdMyjEc2nqq70sSgXKKaT/3SsyBvJmQlIFnwKo0INjjle2n+rW7tjsOYArTu1TJXgovRqwKwuMVLxv1GSSIfvNzzt0J3XkPzyETDutMpevLJqCAh8LuGidTtmbhE3pJtCVAQNwM6logOCXQuHO7nr20fvu2E3MXH4BJP6OPQwD5vtRG5KgZtAyOEUm6NA/yEhmkgMOJhECDk50SNhASbm1G7K8ZUglBjJu1hxHT+cguOvyyW0/5eiuGnpPAlflfq+TxiRTP0F+edT83BoaOpf6KifZjCaOmARe0Kd6Ze0wFUpPJBdKD8k8t0uRfTFsgUqJYk7k7SP0uq5YPJ7pNKC8RQ1ZlPjHFcqSaSFM/BFSEc86vjD4qSpifOa6FIBkG1E34ZP9yeSxphAXbMmsh33hyP3f7+rkaSRmYxGEF7IQrSLh1B1dG9ExLNioipIWp3C5Cp8YDGV5AcSBc+PSNPc5g1nsk7ajfI0j9AzIEuGjKq7LQ w/pbBWqO m7lMgkantJvCce03b9xS5/cLVOdB2Bvd5xoK8lIA6T3EqxorcKZiv2msUzEbBU+obqF6V9FJBFfVyNdhxUK9+N5kYeFdB6pwJueWiaTjpkI7NUqwA+FkZdyqmjkHhamJ7zpnLTQFvzSgimkuNQIDTpRPlNCih/r6X3byDsJ7Nmp0WQzWoIiSJcQpYiXjO+A+6HzjGJrgiEzyrbKBozoPp/5YZgR9gc9KJGyE7O8SsYMsKZ2sS14yJ937fD8CLSFqF/BACSZCv0hkzVxhDqAKw/PIM3Ziuc/UFviprzBX1csvNQDNk0v0ZbGBtQf+Z/TEWqyM7RDAkNhOFHWmQwH8AUqQcTuoI4TdXmZkuzEfpq5XP0cJVOJ7P5uDRj1qgWIWjiqjbKlOg6old2E54pdhx7Z4PPSKDTcCYPIHE1pwmxnqDSUQDmmxur2Zqkw== 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 Acked-by: Jeff Johnson --- drivers/net/wireless/ath/ath11k/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/debugfs.c b/drivers/net/wireless/ath/ath11k/debugfs.c index 57281a135dd7fa6b8610636f47873c8bba21053c..bf192529e3fe26a91e72105a77b4c6f849b905ec 100644 --- a/drivers/net/wireless/ath/ath11k/debugfs.c +++ b/drivers/net/wireless/ath/ath11k/debugfs.c @@ -178,7 +178,7 @@ static int ath11k_debugfs_fw_stats_request(struct ath11k *ar, * received 'update stats' event, we keep a 3 seconds timeout in case, * fw_stats_done is not marked yet */ - timeout = jiffies + msecs_to_jiffies(3 * 1000); + timeout = jiffies + secs_to_jiffies(3); ath11k_debugfs_fw_stats_reset(ar); From patchwork Fri Nov 15 21:26: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: 13877138 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 95359D68BD8 for ; Fri, 15 Nov 2024 21:27:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A9E28D0011; Fri, 15 Nov 2024 16:26:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 52E7F8D0013; Fri, 15 Nov 2024 16:26:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2BDC88D0011; Fri, 15 Nov 2024 16:26:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id F364E8D0013 for ; Fri, 15 Nov 2024 16:26:51 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A2BA5C015B for ; Fri, 15 Nov 2024 21:26:51 +0000 (UTC) X-FDA: 82789611870.01.3B47E67 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf12.hostedemail.com (Postfix) with ESMTP id 40D824001B for ; Fri, 15 Nov 2024 21:26:29 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=oGb2YPV5; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.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=1731705830; 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=DTjXQ8JEnxKHPkRfiey8gv8xkSCkh1L+oMakOx6bumQ=; b=sVaQhoGjnFZS+iRAtbgpVpNdz8Uevmm5Ovpg6Tw25Mtf19swWSP7jHKK4bPsFUml6FFb3n NeN1PBvDrVy+OkBvN308gONdeihaCtlEFl8CVWLA49FlEZb+TrRdRSnrHgL5JLUr2kKJ4H yjzlZjI+KEtxIyv0WeyWui1vFxdvWTo= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=oGb2YPV5; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.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=1731705830; a=rsa-sha256; cv=none; b=jXr8IV0j23qRip5dViGPY8XJAqFFnT/MJRcvr7TLmDfp5OcyF5zWXI8JMtQIjKh7JHEXKU G/HfffOxcBaVPqf7Ch+FgQ+ULPhMhjP6031UhU7w97SzEULNyy8yfZgXPPcmHoq1OkqiyC npJxqZAEgR0FkMgE9mGaECku3VsriL8= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id A9C08238AF4D; Fri, 15 Nov 2024 13:26:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A9C08238AF4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706004; bh=DTjXQ8JEnxKHPkRfiey8gv8xkSCkh1L+oMakOx6bumQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oGb2YPV5HdUkrLc8aXXGxz7j6fdC94ISGz/3Z3JDkeGMzqfQOdm/os+DxRfbZJSZm Sm8lyg5zbYiuzLJMaRkj7E/23RBdauVbVu8dNvl0Gp3UJGc2WZ7231aTsociCQa1Qd Z6HMNGoW3/gYR/l/pPCt55x0CtSvKcJxm9RO1wp8= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:33 +0000 Subject: [PATCH v2 16/21] Bluetooth: MGMT: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-16-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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 40D824001B X-Stat-Signature: 1bphkncgimu5o3wh7wo7e3up7kph8uyn X-Rspam-User: X-HE-Tag: 1731705989-778023 X-HE-Meta: U2FsdGVkX18fNdT0M/bKNPOj2VVi41VjnOkCX2wLYeRGKW4IP9kHb/bpU9lOKKfzSAfTz2ylgoL/f2D3RlC6XJrgLKK+1hVR9HQVkUxZ561KihawHo2m0w2sY2vAdL1zvhFPtwBCE5OHNPJOsYS86OnkwM5r9pn/G53YuZXeeaH6jU6fJmOitzft6veNDfi1wJY8G9ezVOG7CQ0hWZoxsYoRuDNdT6t6wiN/g3lpyzbkFAUPLMwVQpNQv97qxrwKFbI+1sl4fYMSILajRAZrSQade0Y2LKlwtJz7F4p3Y2g13ie5LNJBBaJv/AtYWlzUwtfkvuoiuzK6oBEpfYs1IyTohaTcAFOMQ/6Em6+aR8IMdew1gtzU4q/e+kA9X19m8HKyQTT5IysuSPXw4S+Uv4gV19EqPKu7OA39OljVk0xnsqx+0EDxY+186PpvdP+SJM9VSy2V+qN/9njclJIdQl1Hcgph0VNH6G5iHiQ/PACG3Lc+Un7mKjYpnflUyr0ciljTHfSURmpYe4Q0ajapPr6BhMi27o6kk/7D5jGE2NhB/torcvKqXb/PfgdJ+tdgii2GEJQA1DxMODyhywON1uN/plLi2pNZ4HEERfm30ezm6rwNtJj0IkD8gpZXwbDPywfs4atjaHJhndvWF8GOFMbc0DMazYLBzRMpDdgmT8J5YsRUe56hEzfObXSd96XJFNL+byOhIs9UZHBMmRFXQ7rVwLUEvnlSoppu9X2Tm10mr/tasakjIOT7Tfpq0Sg0DlSH+E0Mk3sCrEI9OZmiaRC2CNaH1PLCxo11JXa/HOhqhEq7AXglg5zqlctPSjMtYAFrgIRXTUEwGfE6bSTekqeV2wbUw2tJSKQ/vna7mrcA80FZycb78IhKDmjyMu72OTC6E4/uYI0SCLO+tJAHefpdeDFkoirqSaEdPLeesTone/fm2CRraFY6A3ir5byEjaxM27aW/VV+EbvQqvZ 54jTYCmt CKZsgqXBHmIAlToQsh2jgao2Rh12kXl6CWLZLwpUiChCJSBdookVDHf2TgylSpWGIj+otdnxApK4Fvg5bbEpYIb+32KmPYIj2XKsQRiQkjWbv/Z+KmtfYtnCreQuKdwAVpZjwE3rGxhBWRnS3d5J1YXT2Q0wc39xzlVZkzlmfHKkHTe3rgDY/Kw7+aVaPsJsWSEQGRbClJQAVPYDr2FFNR0YL3HuBSSybdq+os3aDhLzt8fzPwTT8/R4s/9WDluNvx0deQS20NHJHkA3qVjRb3TVjD0jIxROLep8pHL3dDX05fGRkqX9PoDfmQBgja90AfnRMgZnAy1GQCelzaB3Hluqxyrrse/gVp4ot3tvA1f6iTtK68q69KwJptzO9Ss51U7W9X36yT0X90ZO5xhUA5/4LZImPUcvnDprir44NaQ4RiXcWn8k4a212nOuleaCN5W/X 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 --- net/bluetooth/mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index a429661b676a83ec2d34ed7e228195f39a153f9f..ca89c26d04ec64869e6b99de099d343f4c548ce5 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -209,7 +209,7 @@ static const u16 mgmt_untrusted_events[] = { MGMT_EV_EXP_FEATURE_CHANGED, }; -#define CACHE_TIMEOUT msecs_to_jiffies(2 * 1000) +#define CACHE_TIMEOUT secs_to_jiffies(2) #define ZERO_KEY "\x00\x00\x00\x00\x00\x00\x00\x00" \ "\x00\x00\x00\x00\x00\x00\x00\x00" From patchwork Fri Nov 15 21:26:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877139 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 B8EFFD68BD7 for ; Fri, 15 Nov 2024 21:27:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C85938D0013; Fri, 15 Nov 2024 16:26:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C100F8D0015; Fri, 15 Nov 2024 16:26:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9CEBB8D0013; Fri, 15 Nov 2024 16:26:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 7AB3D8D0014 for ; Fri, 15 Nov 2024 16:26:52 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 38B1AAC627 for ; Fri, 15 Nov 2024 21:26:52 +0000 (UTC) X-FDA: 82789612962.12.55A389B Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf15.hostedemail.com (Postfix) with ESMTP id 84BFBA0036 for ; Fri, 15 Nov 2024 21:26:03 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=OvSN4ExT; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf15.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=1731705830; a=rsa-sha256; cv=none; b=MZD84UDGPneDJVJGl9pw1yAQEiyimX+UOhqEoWqAsyn9XotWttfpEckLnejdZql84xzWut qjt7oigZrRysEY/G13AfiJkEM3/DNsJUEejWksSTLf7IHm9INkTkcCI7JbEkNuW/7b0gbI Qy6gbcD2cxDkkMoAtmSuD75uvuih+7o= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=OvSN4ExT; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf15.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=1731705830; 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=kyIMdoD81WSCHIuRs3t1IxAuP6vGJ5R59VD+r/6KKK0=; b=ZRl3hOEvPrTQx4w2W/3zKIXsQmZghMFy49Dz8Oh4ugCZivQzG7vayAe/qL7Kdhau3Cw6Iu 9jt4pJganGqOn0j5EGPx33RT6n5q1osslyoE6TEgtm15pxtMsnrLX7prAEjM7fCS7BtiGw smlzEbgN35qYYxXctJra8O4LNhP+T4g= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id E068E2064AE1; Fri, 15 Nov 2024 13:26:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E068E2064AE1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706005; bh=kyIMdoD81WSCHIuRs3t1IxAuP6vGJ5R59VD+r/6KKK0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=OvSN4ExTI3ztYwv8z22+okCfYqet5Vamjrrd8DLniE8bXBLrrqlExhm9XqqhqVQAv K9X4eAD6Lklhy7dtiZRCgteR1YNNFWOyXJy0qOlBw+SNmEx9GYlOniMke213AVuk1H UgCfCoB89XARJTc4CqTz96UEBf2hkM8Effwv9vsg= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:34 +0000 Subject: [PATCH v2 17/21] staging: vc04_services: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-17-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: 9kc1ht4bhqnq4yiyyik98deuu71ix3co X-Rspamd-Queue-Id: 84BFBA0036 X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1731705963-954088 X-HE-Meta: U2FsdGVkX18JlPSj6nAdetOrpowRZxtV1Jupyhb1H8Mzv16O4teKQhI6D5ACFwqRff8lAg+0JxFYfSGzQ3s76ssxHECt21+3lFhrN2KdiHsTBN8Cckl39U/YSHCvoG74BffF1wRla66drJ6EqteQcQK5v3QU2u51lpey/sZ3cqE7DnbpRr4cAuwsD5pIahPoQBwx7H08a9HhFkhBJvOeZkXJeSAfTOdwDugl9goYUt6DL6bSrTCcjzX5QVK05mEiK+uARt6rVMNqzD7NVovk6Tk+kFeKbFdnxOT1TDe7hImdaWBkKHu2GZyOqsuM6m0hm5xXHfs2+k1PwKnYkdktyAKrnRlrceeNgAnZOcLBt1k4oqLz8PNoW52lm0RCXYJF4nSK1h1l892jE4CK2sf6HHExsK4fThPA9+ud5QwZ7PdRB3bFVgri9SN1yLWHYyy4EH2HZ4sMrgquhr6Y4fqU2j0raqBtRsvTmuUkLbF+B0IkdlhY24HaG/hZMga8/lklWJeeZ+oZM0zSVmkCphRNM0FEiLt3mLTNvw92do8TnEqC9OFeiRj+KyKCIPaJ7PMep2DiLbFtGsT++duRoHFpsvRLGi8dwSu8B/waWRP2ACzdgv2KEnPiOHHTpgQZahqA8qzTYl40aalQrTo8O7D3Sm5N0xeLSBnFOQzD9o96/JGUOUl3+T9JlL9X/eAZTJlxocZHH9vFmfmBuGyYdTpfatmnP9yXAjfy1JR4aGACu3RABzOAa5kuTn611dKkiuPmGeZ8t4tKeb2P6CTZ5ZdQhA2OLUkNWmBTSlaMzfJAAMf1npHLsFFV+eT3022nq7KtkGvyGK5OeO63YUmjGUupvftlfxyiaUyL3QbebXUDYjQ4KSg75pSxR8fedkECgAJ4EQAuTw0xTBg0foPp4252sPNwHOsJ38mactvVwM1BAo0Du2A6pnmC8/gVG1P178y3e8d5BuArkqnFVxJ1xYJ KBP4mdb2 dg3XOD22EAualeeF/mGehnulnYi2lRlQYkhr4Ct6cXDwc3fHSrcHQfZHKd8tUD28n/oacGI72nNVax3J/bQucul4TG86ukip7C/AXTJgJVQFXsp9empSk0JC/LTyCACJp1c1kwNKbA6mv/Y3vOopRXDGeIdX44Z64lJLN7HLcIKQP+/g508yiDz8Q33eDG8B2mCmEXnw9Pl4AOBoQzV4tRYK0q9+P8UvgFXcrUD3t3L20iHen6lPIEMM6H0OcIQ+Tz43R8z+mmwYACol0SqoBR7yfLA2BnCmQGg/n83O2SNh4MltkXTR4cBXk9JacXcbrR6dJ5MFFSnKmhok0oerv+22XtQenRDMUw39bhItBI1qqmGAzetw+tmf/rD3xsZuMxQ//hEsa0dJ5s0LObEMqPQc4lQoFRvYj3RIwOwCwXxZp2LevVqQYcsQg8SL1r6liZYQA 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 --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c index 133ed15f3dbcc07dc353c22d8522e11a08ee6f46..6bb2562e071c4e623e51852860c682e047f823df 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c @@ -59,7 +59,7 @@ static int bcm2835_audio_send_msg_locked(struct bcm2835_audio_instance *instance if (wait) { if (!wait_for_completion_timeout(&instance->msg_avail_comp, - msecs_to_jiffies(10 * 1000))) { + secs_to_jiffies(10))) { dev_err(instance->dev, "vchi message timeout, msg=%d\n", m->type); return -ETIMEDOUT; From patchwork Fri Nov 15 21:26:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877140 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 F0F97D68BD8 for ; Fri, 15 Nov 2024 21:27:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C86F38D0015; Fri, 15 Nov 2024 16:26:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C0CB88D0014; Fri, 15 Nov 2024 16:26:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A36418D0016; Fri, 15 Nov 2024 16:26:53 -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 838C98D0014 for ; Fri, 15 Nov 2024 16:26:53 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 41A2D1C43AB for ; Fri, 15 Nov 2024 21:26:53 +0000 (UTC) X-FDA: 82789613466.11.6ED7EEB Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf08.hostedemail.com (Postfix) with ESMTP id 8151E16001A for ; Fri, 15 Nov 2024 21:26:20 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=UMDCxiMF; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf08.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=1731705946; a=rsa-sha256; cv=none; b=8MP98jWagFf1irWo2aobNQH56+cWKMi7lKDPc5ERbTwwiqD5H3C/pB2tZvDkIL8LGtqWg4 PJBYAnWew2M+vhISACfV5K2kEx9Me4lFJ0YT3KjS4+MqwQAcbenlPvRihmLdSayGm0O1ya M+VlyxrgJ2BwIJkLTElOIfl6uSu6IbQ= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=UMDCxiMF; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf08.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=1731705946; 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=7RgevXzVOF2wd0QHaqg8sKSXBh3tNnxEZNLAJYHO4/0=; b=jZimzJDyFEc+wG6qvULa2QNcg1btIbuKhA26WCD509ok8O2bU0bGRrnKz0fbGkWFec0Z8d 7fm+EFxy3bWY2G38gt70fTy0ZYrFrEjS+QovFdQM90eJGMv0PvLZMOPjU+l0iBnyI9Eecq jr3Vs5ZrPVjH4LYGu4Onu58lUNjAaUg= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 25F9B2064AE0; Fri, 15 Nov 2024 13:26:45 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 25F9B2064AE0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706005; bh=7RgevXzVOF2wd0QHaqg8sKSXBh3tNnxEZNLAJYHO4/0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=UMDCxiMFhqj3OlDob3LYx0iO5XeNyfLgAMK6ZmPOVPjyLP8LbvBk/4clux5a7IhZf SUaWunrnwv/PJO3csx5OWc8mNOgOiHWkD1xkNHfyawuJ/x53ffFQkcrJhZT2Q2aLBA ECLfhBVQizunL7YqKMclkNruWg4koe1sEVlXuTiY= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:35 +0000 Subject: [PATCH v2 18/21] ceph: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-18-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-Rspam-User: X-Rspamd-Queue-Id: 8151E16001A X-Rspamd-Server: rspam11 X-Stat-Signature: z8cagyfkhfhi3a9kaoe3x8xank9fwsj1 X-HE-Tag: 1731705980-845691 X-HE-Meta: U2FsdGVkX18+t4x0PSi+kUW5gps7IWVJRHO9ehJj2cdpYXGUBSm6vMBpJzpmE961Cz3DCnI7g7wahnYE65sHfT2/OKafPJW0ReIwSxj+akBKoDx3ykxRJUejTNfJSlRHlkCsNSRq7W+VgUiEBhVoh/W5RTeHcn90FchkfmODRHDziAAs+9QmMHz1AkOdUFhtOM9M6zckCpdN2SLolo7ned73MNJ2ZCx9dcqNXKtKwAxCnokwkWVun63FSh0s6lNLRdnauD4Ou77E1u/MdxEIWw073uU/Vn9bSeGdgVSDeIxYVwIswph6/VgCSm9jEUaP0sF/iQSYvqJRxM5bKBA/Jx98CjILp6nBed5inGIgj6aWI/uz8jADRpgIaa0PidjPEp/s8l+gbzp/EPMepCrBfCZ4uKPio11yvWh4F6JEpk9GyyPsbOrAahTUXYdJM11+54EHXsqzhY8uBEna0JzGKGhRM8rzDb/ykvSawps6c0K1U5bK1eRlch+8/9rBJWiWNAI+l0cY4vg1q1tuJHmYD/49zzVGFOC8A6myewpxuQZXPe+8jlouDfYOaRGCqJZdoRlRJMehh3yhXcAUTcBFINOiLJeCENghtDPP0OywCIETTpoh01xu03GDrQaot5aZzhu1lETkRdUIP7aNlCh6JCz3J0OJ84tJecZivNOAZz7lmAjiK9bt1RILRnuRXiFmKolOrmcPn0H3tX+9krbFRH+5UONM7u5+zKlov93lI/9fWl/SX8JDilk0IWYFceCW6mKCE3B9e+NU9iq+JmFbqIOBnSvflS4e2RwvFGmXjLf/S5H0BncmTXadoPBZTdfY+U2D12MJTw2QOb5xMHTwazec6/MYKYV6wBAddzowBSr6IN2kfAQILLPZfDsRscnNcRL4aB3XLH9hcXtY5BDi3rh2bty7g9oYTTzugcQqDu6HpxI7x8OgzjXJajrDAboiDm6NHRA4ukwlEOcDrQA tF2mivCg QwUWEamAtce7MS9qfGHKW4JMkPqJTSqrA+FETfphzz28kKkDMwLvV9Hs0MTk7VWNDxpLRJJIhR9KnlMrQA/L+KfbEdX6Z5D8Ouo6imOLj57BImmuA82J4uHty7xOgj3ymGlgKC4lUu4DcRtunDXAyaKRq1OVAVSgjsZyx2NbhqkHjQj3JC6+e2H6634iGHm84F8ZFllxxcobBtsj8A6p+2d53zFHaRcYfcvwYxV+isVdx8yAUfWGzqLqzHkoqL2I46uig0qYVjzHWoOz5euaVjT93A3kvE+Uf/R7y3Aroqj2VdTZGcYqTEnhQIItyasorsf2xCOgxWHEVRBT2eR2d489PMCJ5SAT31pWq1LA63mPA+chUVwdAIaYOT7WwsH6UKcIo1GtE/Er51nobB+bhN52/4e72Icg6lwSxID818N6vZXcfzxXaTra3Qu/SdPBYd30J 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 --- fs/ceph/quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/quota.c b/fs/ceph/quota.c index 06ee397e0c3a6172592e62dba95cd267cfff0db1..d90eda19bcc4618f98bfed833c10a6071cf2e2ac 100644 --- a/fs/ceph/quota.c +++ b/fs/ceph/quota.c @@ -166,7 +166,7 @@ static struct inode *lookup_quotarealm_inode(struct ceph_mds_client *mdsc, if (IS_ERR(in)) { doutc(cl, "Can't lookup inode %llx (err: %ld)\n", realm->ino, PTR_ERR(in)); - qri->timeout = jiffies + msecs_to_jiffies(60 * 1000); /* XXX */ + qri->timeout = jiffies + secs_to_jiffies(60); /* XXX */ } else { qri->timeout = 0; qri->inode = in; From patchwork Fri Nov 15 21:26:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877141 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 D8A0CD68BD9 for ; Fri, 15 Nov 2024 21:27:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0E9D98D0016; Fri, 15 Nov 2024 16:26:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 09DC68D0014; Fri, 15 Nov 2024 16:26:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C827B8D0016; Fri, 15 Nov 2024 16:26:53 -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 9EEE48D0015 for ; Fri, 15 Nov 2024 16:26:53 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 5C05D403FC for ; Fri, 15 Nov 2024 21:26:53 +0000 (UTC) X-FDA: 82789611954.01.19BF05E Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf19.hostedemail.com (Postfix) with ESMTP id 261AC1A0008 for ; Fri, 15 Nov 2024 21:25:53 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=ge1adyPG; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf19.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=1731705922; 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=DChbJW+DaqGHGWE0sMF41tmxT4FReQ1FKA/KDyHL32Y=; b=RWUAChQGBrYniPCls7kiRRlqxVHAvM7q5LXp8P0gBT4H0FBoFONSMkCt2s1QHUv5Q3yF0g rq9uIGGLV+CtPyD892VIw8c+WMcqqf6GoyE56cCjzQ6lgGCjuC0fP0tf/9bn7BqNPojn2j JdPviagVJLQk8wCRdstAoiD6x9If14M= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=ge1adyPG; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf19.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=1731705922; a=rsa-sha256; cv=none; b=4oettsk1sbsTdAkRxKUzI5+TFKQOkBWfnsn4EkJwUqnTkZ8aYChM6Lhmr7QW1yiMTgdHyZ 2RnT9U07p2yqtpYmFoZn15hjBrWv2WHxlUD1YYm+r3BuBmh6o2LXklWqk8I5XQJAfdwVFX e81Pt75jCGoUf8BZRX3oyPiq7TGrrrM= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 5CD1F2064AE2; Fri, 15 Nov 2024 13:26:45 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5CD1F2064AE2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706005; bh=DChbJW+DaqGHGWE0sMF41tmxT4FReQ1FKA/KDyHL32Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ge1adyPGW09osua+wGGbdGdLanSrZuA2fUn6nHmkQB9BNqn7wXFeAp1cdPu9VCOCp 35/hCv3XcEWTsrlvlhY2AjaoCI0WZCFykTU/SVB+MenGuEggOAvCtL12icddG0ZBHS CbMDQbZbPdYcJR1LvpcZibK937QvjL6m/Aizu5/Q= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:36 +0000 Subject: [PATCH v2 19/21] livepatch: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-19-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-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 261AC1A0008 X-Stat-Signature: 7yfhduq7yyydzh5mg831acgqnir9w76c X-HE-Tag: 1731705953-944812 X-HE-Meta: U2FsdGVkX1/aHCYth2q04zlO5NOmUxIVcD59OKDsYHHssH08qUqIQd8bkQ/h2gv0O9ArSSCKt+TSwtJYiTKvhjU54jp7xDXVA9wLBSQBLr5e+lpoa+KqLzS/q5lXemt+pQaWVYQRhAR4jrxN/BoTStkmahWRORWiXCzlr+jX4TsEx/Jvdns+NrUGhnNfkTkKmOtZ+25Bz8uZu3cq3wqLwXTfQFFHaWtg+TZAnvpWWY9sXoYaj6/SOilKmSSfBvj0aZ34vuhcXznGnx+CCvz5txGJ00adg7MkwJo0Wm+J4fTDocjR3VthC7T88P+0EPB/4D8abhQKV91AWHuOkKlPqxD/D5k6ETSq2kx5kHoJsQoxoCmyteSU51tL76uC+jJadDGZlB+CotZPGeUDS3sxMgzZKBvYcxmq1wYe6irU0+EhAxxiPZJm5FZbDDfPrKAuRj/Bl/H7dDnPqo1fY95QPpNnD0SfpHyOx9I6sCZvI68zu7iQjtt46GyDExzr7rWetU5viWikRjkLjDYIavFX30wqLQR3VqjX7A/6JeTBlTXEg3Ohf+wGJq5MZdMcNCIypZpg0HdsadYb6eJ4GQNZXMzCR1kckiAyW1JtS59RiuQYg7mIzkGpjIGNukGBb7Yqn/9vXEtxeoJE2AivyorYkT/16VWkL3WhDBSZGaF0yInA/Y2jwjWgtz9/P1ZPFEpUUT79j6C6tGh8R2BkD5WXg71Ed4o+fcl1prCjyw4Yc2PF5vMQFR+tgNDfC/rWgVvVx3IUG9LJc00lSKy8YuwBjYTJu7SeZLahnfiWRujXkYoBCED8vSPaUASnHbiju+wfSqkemzIpkx5BQ54UpLnRN27c/hheT8hMldHDQW3smKHxUYeqH/j/CgG9/38SdPSqxhEOhcScHvo4/oDinhafsYXm9/xN3tF1UBCg6uO9j655QfSHxR/+WXHdTvN6/ND6Qh63rP3HTS07WxMp8QS zgcTNNOB ZKNebHgYOB3dOUaIFy9v5m9N0nIEg2QLdkYblo0rfybB+yHqCapOp8XMS0QdqHTL204dExUy9N+Am6t4igZO7I3cGrylbVG5sjQd4xwWz+Xqp2mPfgbLRUj91j8EDY8wjLRy5DOf7+kiNzlIzmfdaRaCgzGggZeHMHpqoR7KvJNc6P9VFyKPKsRARLiG9x6dOvYgDkYcIizOf9fXW2RALpejnZh6DFxB7oSqU2vUQTpjX22B/XUHHuTdk52DanX79lvdkygQku4CeXhRK2rXzcoUrOlS+pQ5fDVdw057SiHnxMkxwd+RZyTYO5Qp1QmIvUnEqIYLaz/Ce7zKglXy51qzmYg5Guu6HLk/5GxljE/FjJNnQOkhvANOslOcPUDC0qv1uYmdsVp4iWUMbVR2HkEHP/EKiS66N/ws5ofZYqB5WHuj5U1U1QTBPLwNamGxc4CPU 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 --- samples/livepatch/livepatch-callbacks-busymod.c | 2 +- samples/livepatch/livepatch-shadow-fix1.c | 2 +- samples/livepatch/livepatch-shadow-mod.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/livepatch/livepatch-callbacks-busymod.c b/samples/livepatch/livepatch-callbacks-busymod.c index 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba 100644 --- a/samples/livepatch/livepatch-callbacks-busymod.c +++ b/samples/livepatch/livepatch-callbacks-busymod.c @@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void) { pr_info("%s\n", __func__); schedule_delayed_work(&work, - msecs_to_jiffies(1000 * 0)); + secs_to_jiffies(0)); return 0; } diff --git a/samples/livepatch/livepatch-shadow-fix1.c b/samples/livepatch/livepatch-shadow-fix1.c index 6701641bf12d454a770e49abeeb0dea92560e55e..948ea1f5760fed2fa27baf478c97cf98ad5c99a8 100644 --- a/samples/livepatch/livepatch-shadow-fix1.c +++ b/samples/livepatch/livepatch-shadow-fix1.c @@ -73,7 +73,7 @@ static struct dummy *livepatch_fix1_dummy_alloc(void) return NULL; d->jiffies_expire = jiffies + - msecs_to_jiffies(1000 * EXPIRE_PERIOD); + secs_to_jiffies(EXPIRE_PERIOD); /* * Patch: save the extra memory location into a SV_LEAK shadow diff --git a/samples/livepatch/livepatch-shadow-mod.c b/samples/livepatch/livepatch-shadow-mod.c index 7e753b0d2fa611524c9e2adbe02c8fa3e9b6015e..79296e6ccb119f521e86a121623855d841c9fc5e 100644 --- a/samples/livepatch/livepatch-shadow-mod.c +++ b/samples/livepatch/livepatch-shadow-mod.c @@ -102,7 +102,7 @@ static __used noinline struct dummy *dummy_alloc(void) return NULL; d->jiffies_expire = jiffies + - msecs_to_jiffies(1000 * EXPIRE_PERIOD); + secs_to_jiffies(EXPIRE_PERIOD); /* Oops, forgot to save leak! */ leak = kzalloc(sizeof(*leak), GFP_KERNEL); @@ -153,7 +153,7 @@ static void alloc_work_func(struct work_struct *work) mutex_unlock(&dummy_list_mutex); schedule_delayed_work(&alloc_dwork, - msecs_to_jiffies(1000 * ALLOC_PERIOD)); + secs_to_jiffies(ALLOC_PERIOD)); } /* @@ -185,15 +185,15 @@ static void cleanup_work_func(struct work_struct *work) mutex_unlock(&dummy_list_mutex); schedule_delayed_work(&cleanup_dwork, - msecs_to_jiffies(1000 * CLEANUP_PERIOD)); + secs_to_jiffies(CLEANUP_PERIOD)); } static int livepatch_shadow_mod_init(void) { schedule_delayed_work(&alloc_dwork, - msecs_to_jiffies(1000 * ALLOC_PERIOD)); + secs_to_jiffies(ALLOC_PERIOD)); schedule_delayed_work(&cleanup_dwork, - msecs_to_jiffies(1000 * CLEANUP_PERIOD)); + secs_to_jiffies(CLEANUP_PERIOD)); return 0; } From patchwork Fri Nov 15 21:26:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877142 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 E9F0DD68BD7 for ; Fri, 15 Nov 2024 21:27:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7C91D8D0014; Fri, 15 Nov 2024 16:26:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 72B168D0017; Fri, 15 Nov 2024 16:26:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 52F208D0014; Fri, 15 Nov 2024 16:26:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 308BE8D0017 for ; Fri, 15 Nov 2024 16:26:54 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id EA25F403F8 for ; Fri, 15 Nov 2024 21:26:53 +0000 (UTC) X-FDA: 82789611996.01.248031A Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf06.hostedemail.com (Postfix) with ESMTP id A9470180008 for ; Fri, 15 Nov 2024 21:26:19 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=mNHdIox5; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.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=1731705833; 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=94UWkQUgIE+TIBJCr3TB9bjXju243wFFlCrw1pjugTo=; b=EN9V0waGqVHXM6MVQRLKX3KqKwrJ5S/J4Z0sWtKeIjeze6R0JFXb93+50f6xZKtxbnTZQP 4C8Pl6NZyMiKt9ME7FhW/Tr9aOtK+C3EjfOWizZRO3Wr9FXAoQGdL0ibTky5Vn1fylwifS Az8aU47AmlT6eB8TpAJdffFOxfeqRhQ= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=mNHdIox5; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf06.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=1731705833; a=rsa-sha256; cv=none; b=QT65BjKkvqHDaik5fTeZVq50KPWrtI5+hkBEr/owHomCJPfuWtoZT373zCslb01lxtNIIZ jS0utkstbZ2ZAYLeLplAzk3ME1qUWH2+z9ylAYsSd5yqgD0xYUpvdiJqszmtfxPKqjMuOt D3IDhjIlUzp50G09SIba4CtFGXawFPk= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id 956492064AE3; Fri, 15 Nov 2024 13:26:45 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 956492064AE3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706005; bh=94UWkQUgIE+TIBJCr3TB9bjXju243wFFlCrw1pjugTo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mNHdIox58am1vKiSlapYyQSd/IB/puFk5Gi1H5FYHJ3c7VwmewWXtYwpq8qZgM5VC FsoAzIfa/5Dmw/g1Wnz5pM6x92x9pSsv8KUjV1VC6j6e14jtQDSlKdd0OQNegI9M/0 o4hIDKt2X5QgI0I8DrdvAcv+VpyUUXxnbDtHt4Jg= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:37 +0000 Subject: [PATCH v2 20/21] ALSA: line6: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-20-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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: A9470180008 X-Stat-Signature: 3b5wrq8z9cc76kttyoc4fe1d1cdco7m9 X-Rspam-User: X-HE-Tag: 1731705979-861866 X-HE-Meta: U2FsdGVkX1/wPckxy65NJXTRAoePAzvWm7NwwqnkcjeWgqcD5V+1EwoG47IB+wgV3GCAyLcWlUuRQ7YzGdITwdO7bNncDtVgKlvcMpdMdivCT7ht+aRai7Lpa4BkEhQIgIMo01rUdMunPjpxbzvnZFLFL92cFIE5Mk+z7njM41gbqNASuAmKB8AynCuC+OwIjc74NBQfmDiXgnwl35tzos8tZaFG/6V93kxu8+KY9wJ+MzY285f5g91skrmoXoCyWSpK31xHyRB51ySXy9IDfejmfnJXuRMZGqOYu8xBKsvryQ4ZtuRWD6L1Y8sC1ogrqVMrUho0f+1UbeMvbOdTdzqeQFs0fFKKHHyrGNqAjhqc9PVWeaXniKh58tE6yWmaUqKMiiSLkIGal97SPmIULcr9fsEuVux+bi8HKPCLYIKlVHxjVyTuJO7Bsr3vl5KFIImf/BMR6BPO2hpykBIsB3dsZ5DOQ4vVPBSgRTk6/KhCPJoe5cF97pJyxLZBs/JKXb0TE1gKlGk2X5CrWjD7kEm54Q8R3Z/DnOoWLTmqm08tsGdxI5BkiM6jK+P9jgFoIyRAkOweoF6HQs/Xd6UlX+BRYo/MYA2g/j3CgWzJhiXg95bMzB4Wcpe0s+IOlWhVg+xlxh5DTHtOnZ1FGHxGTAh+pm3PWq/5yXUcL0nyMq6+S6VZVvLFKTJtk6cWejBvQijwHpmPuUf8t0KSBkA5ra0edt2WvgwfMeRdPL8xtT0McKv3ulL9brd/tYkyBQeIMKOeI4K7dhLwcR2UnJshHgYu/LGUvP6Mt4514wVmqeymW7EABsqXn+aPA6PBF8g23Vli3vY02s94FRl4KS/w/yeasiIhMAY8h4SUZpZ0n8MHwVGiPAiarvVRth2ax62KVPalh3NDfmksao3tpT1VLwQIJEOZ1Ull0DarRoY5UAlDAaa/88WbVF6h+A5Z0o6EdY2SscFiMBg1cLD/nrX lTZfWnaE bFl5HB0DsXy9og9lme4RwqNCBLDsn857YHdLNm2x2KOljTtBS9rwMVK3MOtnsiiE28N2gim8rUiIUCfqLRHLyZIfkW6I82K8K+srBahHrrsKheYtb6PNA7RUtT+0tUHS/YwEos+BvsUEc/X5qjAYY6e75QZGli6cfGK9N6ICwiI7S879Sy5NBcdor95amN6/64sdLYX7J4f/HtNnIsYzKW1XsnS2wWYp2S8JY3T3WfBHIQZfLjvbp5/6Qj2ltOrRv0V6FQSZ3Q/rltGPtQVAM/cAqwK5xMXPteys2MWtkEv+fDOCv7KRtZ7t4wZ5xFzMYgftZNLO1S6Kw5ZtqTElYcbm/qfDkCxjU4TX9pDR9ET1NzSLhKqehWkfhGmi5DnPacHykA463j5pBrT5X0WGoJeIigq/k2CeFWeBClXAdZgsxYzbF//V4bPHY3PoNbIEJx0gL 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 --- sound/usb/line6/toneport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c index ca2c6f5de407ece21ab69a39ed603e3f10069039..c073b38cd6738176fc6a276d05ed553526573341 100644 --- a/sound/usb/line6/toneport.c +++ b/sound/usb/line6/toneport.c @@ -386,7 +386,7 @@ static int toneport_setup(struct usb_line6_toneport *toneport) toneport_update_led(toneport); schedule_delayed_work(&toneport->line6.startup_work, - msecs_to_jiffies(TONEPORT_PCM_DELAY * 1000)); + secs_to_jiffies(TONEPORT_PCM_DELAY)); return 0; } From patchwork Fri Nov 15 21:26:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877143 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 60657D68BD8 for ; Fri, 15 Nov 2024 21:27:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 187819C0017; Fri, 15 Nov 2024 16:26:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 110EF8D0017; Fri, 15 Nov 2024 16:26:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E7E6F9C0017; Fri, 15 Nov 2024 16:26:54 -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 C6E2D8D0017 for ; Fri, 15 Nov 2024 16:26:54 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 81C2380181 for ; Fri, 15 Nov 2024 21:26:54 +0000 (UTC) X-FDA: 82789612584.06.A277CC8 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf12.hostedemail.com (Postfix) with ESMTP id 26E6B40008 for ; Fri, 15 Nov 2024 21:26:32 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=HJAgH8LJ; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.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=1731705833; 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=C//qZdfJfhN40N7nu/AQ5wmq+hj+onzvFzX2KrlsiOc=; b=UnmXHa61mMheOqUuEMBzh7zyRWE8u9EcF5IGxbdHz3t0SofDwzqCNCKgPPU+IXwa41iCbd KXWgdZRL/yBYDK/6aJ+1R5Yzryi9AiTuQ0eYSvBG9Ohddc2NBIf3H7xQZRbTumblFmoqxz SXYwFccy0KP1RcWSIJL0T800b0rLVRs= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=HJAgH8LJ; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.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=1731705833; a=rsa-sha256; cv=none; b=jaMEQ8pCBZvRv3oukdUYMNPNW8Mmy+GZYqjm2YHcL9gNbMcEnstPGEnsrlRnsiq7ZM2Q7D KabC7Nw1tXfjCUezXJC9XxL9qaejPG8bAcgNHRClVHLpuVCf3+fIZF9a9NIx/jV9Nc7jiR 3DZOCHhpTvSVoF8mU/ibEwErc2Ic2XU= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id CCEDA2064AE4; Fri, 15 Nov 2024 13:26:45 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CCEDA2064AE4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706005; bh=C//qZdfJfhN40N7nu/AQ5wmq+hj+onzvFzX2KrlsiOc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HJAgH8LJ0t02ke9L/fBSseVg4mPwyzRUYKkcIBNh0PXg4ks/yx3FEqq7Ab8V80mCx twfijyV8trWsX1EHtCAISl/otYzpQq+n69SN9Jzv1KZ/q2FjsSm6OPzwLcdwZ6tTZp t/rVqrGYFsKA1powLrxYtcm95fdENEeogYK2qDWs= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:38 +0000 Subject: [PATCH v2 21/21] nfp: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-21-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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 26E6B40008 X-Stat-Signature: 416jxc17idwnz1b9r8n5yqo16h4i1ibd X-Rspam-User: X-HE-Tag: 1731705992-844273 X-HE-Meta: U2FsdGVkX1/me5xa7RTxi9dBrgaJjxkI097dLLKcFQpFuqCqGqGts36F0Npbo49dflDMzy5vvarF6I92z07j6gNdPO7rHUpED8zJw3EL4E+b9kZZZ7RWhhjK8NfPOcuMkL90a25cyextzzGpBVkobiRm7Q8pco7XXl1pDKvJwNzThv6jsdQ9dRK+5iqUuzdZedqKyjT0ymApyQ17ZQBZwwQYkFdruZU11HurVL86mkL5I8it14HmcNFScQvZcVaD6tWrGC1hNuSNV2t+IOBj8Jz9s7xa42ki4cK2R4BUBebe2ljg44nJJ/z54oOcWi/McGBEr5EUFOMdub09iU5070pAhY+SwHGRkTWAhY9KE4MjFSI/m//0jA2jWemcV72HiNEzszu/wELZ6zekyO6URH19OkRL4HuzrhL4DW2i+b7glGoNX7sKii6h3VA2UFVSaAsFk7TsDo51QgSA8Qo6GT0MHrrx5V9s1ubWj8ZpvC1ghG+HIJxQLITVBZFbr2SP3lzyYOP9Y8vLrlg5rajq+MzuY+j8qudlZ5GEkrfJ/bacDYWUa7kwfy1OqhG6JJYIRNfQrrujIp5jskhyoVxKWOLpuyJPd8xMCOVhmGdvZvoO0HfVmxj4zjau1jPQk4VvZ6iny9m0ksowVzsJ9PddK6cUzX3ctwFj3kWlknDNfJz5TGgW/eG+AxuSYIONoPmYuTyOqF5NHu4ciA156q25dWxWzPWhRp5ZCYx/5NqnteGcuHZlIrWfnp2ln2FohzFjGVunZ+/EleV7MoeX0Zk0ygUt53r/oSm5HfkmVRdHgd3HWUjOQwMcD/13aqHeBjJNxIOqQVgIX4+5CRqXm04ZL2YdsjItKVt9vah2Bv+1CwUsBsRea1+tpcYhYkLxN/8LY+zCxRUm2tmjQQWD9Z5nfaJa99HpyeqAODtgJ1P1bhd/Lfe2puvIOY45L0OAGXEOKR5pKzbqX7JXVpDg4c/ hjAlyRZa xjUiOOZ7UNoB54WWrkGn/4O3PyjnOoEC+dkeGq9tiky4t6JLL6ggf7TdQSjTYvPva9Kd1Vf5XSTbWtJJDnl2x1O6OuteimxgNZCEimHamb23MFzct2RpjvTbuGXC0yCpov/luui/Mqt59D9P/GXW7udzFN5KMMJUa62SP+8qhpMY5JRLYef78cQ6hFF4Jp0rMqt2NctF1DS8f384sOs3k6Y2ZTPEvhqiJYTS2mueKKo9uoiH0Erp7wZX2yGSXhw46GBe5OkLw2fxn00JZ2UJfAem+28ZHzYLZZJsK0PwGvFGQyUFbypyz8MvINlivpNzpT4u3Cec5ewIpFc+uMLYEGFk1q57m1s+NDw+YZ6S1n8LErZ39Pa8YTsUkv6L0dJMVX5b/C5eL5lPmgqMYM9BjJzTMHHsduXIs+oMLbF4O6iWe1EDM0I3dXFwcy6WbQ5pxCTbt 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 --- drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c index 6e0929af0f725b2b3855c69bbe894e6626c566b3..6925ad985fc9e2d5641feea41ff277107a8dee9c 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c @@ -2779,7 +2779,7 @@ static void nfp_net_netdev_init(struct nfp_net *nn) break; } - netdev->watchdog_timeo = msecs_to_jiffies(5 * 1000); + netdev->watchdog_timeo = secs_to_jiffies(5); /* MTU range: 68 - hw-specific max */ netdev->min_mtu = ETH_MIN_MTU;