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