From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7EC71D591A9 for ; Mon, 18 Nov 2024 18:08:03 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4XsbFs5fqzz2xWT; Tue, 19 Nov 2024 05:08:01 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1731953281; cv=none; b=I0fNJpn0gxOwpAoyMPl7Pw7JfXzI6FzipCAaDxYnvFE2UGEdnLB3m8kh1U5hhEsAsJv5XsubCp7LZhLbAwycaXnPUb/fWvl/uhdoVvfmiJP05h6BfBtbztFeaI9sg4LFgWFKBHCoD8hNrCupeuIVqS9gqOAzWZgvAeHdfBlY6rRO3Mr/ZpzyILpJvTw4sQg758UwPuUZuNiP2f+A+kCM/KqVA1zIzjqU+6P2B+EMadRlz39YdaB1sWOTYyGsnje1Vb2i/xDQyD3at3ayf46abZQ7bjeDuIQbzcPIUVIJrfeANCZak6yRiH03P+uX/fFsDlA9GqW7sRKu1FUa4nOLGQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1731953281; c=relaxed/relaxed; bh=lP0Zntp+HRWENCbPjrc9G2lDoefH/1cMkwirwj5j8Pw=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=Ox/25sC6TaGYRRyj/dZRO88M0wDenKvniFBJEQqPp35gwMI9rU+YqxcIypeNzJKkkONDzI7Hzxe9Yc1Upvv5TJ7PSdU49RF5Q2h7oOdsCNNoETbuHg6zHcgJ3c7FiZtBAjos116K6XfV3WodpLo2FX7/kkqNSni0W6pWk+kJ5a2oEgFG5mcba3t0kioMXlVmqxvI+uyIy8p3XPaIB4Rbq1F2Dn5zp+Eqi+W2022ItxPvzpGtBcrcJJxbLS6N+vk7lqe8CEvqu1aW+fRy4wv/XXaYYJeA3m2/4827MR9IzjU3OFG+qwIqjiTyHbwmRuNCU4PrvUrRC8wMwUAOL6eRcA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; dkim=pass (1024-bit key; unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=U8YJ5MEB; dkim-atps=neutral; spf=pass (client-ip=13.77.154.182; helo=linux.microsoft.com; envelope-from=eahariha@linux.microsoft.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.microsoft.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=U8YJ5MEB; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.microsoft.com (client-ip=13.77.154.182; helo=linux.microsoft.com; envelope-from=eahariha@linux.microsoft.com; receiver=lists.ozlabs.org) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lists.ozlabs.org (Postfix) with ESMTP id 4XsbFr4H6xz2xGH for ; Tue, 19 Nov 2024 05:08:00 +1100 (AEDT) Received: from [192.168.35.166] (c-73-118-245-227.hsd1.wa.comcast.net [73.118.245.227]) by linux.microsoft.com (Postfix) with ESMTPSA id 3DD17206BCF9; Mon, 18 Nov 2024 10:07:25 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3DD17206BCF9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731953247; bh=lP0Zntp+HRWENCbPjrc9G2lDoefH/1cMkwirwj5j8Pw=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=U8YJ5MEB+lC4gUMBqZ4Gz30eL5pByQSSZkvP1DxkMnTP1qlIes9QjQ3oHvl0/spjY zaV4G+9kqg2wB6l6cY05sRrhV/1+2NwT0Di3E3r4OqgFDSinGSRYQd2YjZAhmOdf7k pgtoi2CJWleSz5F2PF0YMgIK9D4gDdAFvwZB2ktQ= Message-ID: <4a3e6cfe-35ef-4865-8b43-c002679455f3@linux.microsoft.com> Date: Mon, 18 Nov 2024 10:07:24 -0800 X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: 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=B6m?= , 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_Monn=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 , Naveen N Rao , Madhavan Srinivasan , eahariha@linux.microsoft.com, "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 Subject: Re: [PATCH v2 00/21] Converge on using secs_to_jiffies() To: LEROY Christophe References: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> From: Easwar Hariharan Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/16/2024 2:23 AM, LEROY Christophe wrote: > > > Le 15/11/2024 à 22:26, Easwar Hariharan a écrit : >> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] >> >> This is a series that follows up on my previous series to introduce >> secs_to_jiffies() and convert a few initial users.[1] In the review for >> that series, Anna-Maria requested converting other users with >> Coccinelle. This is part 1 that converts users of msecs_to_jiffies() >> that use the multiply pattern of either of: >> - msecs_to_jiffies(N*1000), or >> - msecs_to_jiffies(N*MSEC_PER_SEC) > > After applying this series on top of tip/timers/core tree, I still find > a lot of candidates to the conversion: > Thanks for looking, that pattern of seconds-denominated msecs_to_jiffies() calls will be addressed in a later part. As mentioned in my reply to Anna-Maria[1], I'm not super-familiar with Coccinelle. I sent this out as part 1 as mentioned in the cover letter above to make incremental progress as much as I could. Julia has sent me a message with a rule that could possibly address the pattern you point out. I also see there are some instances in the grep results that appear to be expression * 1000 rather than constant * 1000. I'll address those in one of the later parts as well. Thanks, Easwar