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); }