Message ID | 20241115-converge-secs-to-jiffies-v2-17-911fb7595e79@linux.microsoft.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8EFFD68BD7 for <linux-mm@archiver.kernel.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <eahariha@linux.microsoft.com> 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 <pablo@netfilter.org>, Jozsef Kadlecsik <kadlec@netfilter.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Julia Lawall <Julia.Lawall@inria.fr>, Nicolas Palix <nicolas.palix@imag.fr>, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr>, Russell King <linux@armlinux.org.uk>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, Ofir Bitton <obitton@habana.ai>, Oded Gabbay <ogabbay@kernel.org>, Lucas De Marchi <lucas.demarchi@intel.com>, =?utf-8?q?Thomas_Hellstr=C3=B6?= =?utf-8?q?m?= <thomas.hellstrom@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>, Jeroen de Borst <jeroendb@google.com>, Praveen Kaligineedi <pkaligineedi@google.com>, Shailend Chand <shailend@google.com>, Andrew Lunn <andrew+netdev@lunn.ch>, James Smart <james.smart@broadcom.com>, Dick Kennedy <dick.kennedy@broadcom.com>, "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, =?utf-8?q?Roger_Pau_Mon?= =?utf-8?q?n=C3=A9?= <roger.pau@citrix.com>, Jens Axboe <axboe@kernel.dk>, Kalle Valo <kvalo@kernel.org>, Jeff Johnson <jjohnson@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Andrew Morton <akpm@linux-foundation.org>, Jack Wang <jinpu.wang@cloud.ionos.com>, Marcel Holtmann <marcel@holtmann.org>, Johan Hedberg <johan.hedberg@gmail.com>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Florian Fainelli <florian.fainelli@broadcom.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Xiubo Li <xiubli@redhat.com>, Ilya Dryomov <idryomov@gmail.com>, Josh Poimboeuf <jpoimboe@kernel.org>, Jiri Kosina <jikos@kernel.org>, Miroslav Benes <mbenes@suse.cz>, Petr Mladek <pmladek@suse.com>, Joe Lawrence <joe.lawrence@redhat.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Lucas Stach <l.stach@pengutronix.de>, Russell King <linux+etnaviv@armlinux.org.uk>, Christian Gmeiner <christian.gmeiner@gmail.com>, Louis Peens <louis.peens@corigine.com>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, Naveen N Rao <naveen@kernel.org>, Madhavan Srinivasan <maddy@linux.ibm.com> Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, cocci@inria.fr, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-scsi@vger.kernel.org, xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-mm@kvack.org, linux-bluetooth@vger.kernel.org, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, ceph-devel@vger.kernel.org, live-patching@vger.kernel.org, linux-sound@vger.kernel.org, etnaviv@lists.freedesktop.org, oss-drivers@corigine.com, linuxppc-dev@lists.ozlabs.org, Anna-Maria Behnsen <anna-maria@linutronix.de>, Easwar Hariharan <eahariha@linux.microsoft.com> X-Mailer: b4 0.14.2 X-Stat-Signature: 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Converge on using secs_to_jiffies()
|
expand
|
diff --git a/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;
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com> --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)