On 25.02.2025 20:17:27, Easwar Hariharan wrote: > Commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") introduced > secs_to_jiffies(). As the value here is a multiple of 1000, use > secs_to_jiffies() instead of msecs_to_jiffies() to avoid the multiplication > > This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with > the following Coccinelle rules: > > @depends on patch@ > expression E; > @@ > > -msecs_to_jiffies > +secs_to_jiffies > (E > - * \( 1000 \| MSEC_PER_SEC \) > ) > > Acked-by: Mark Brown <broonie@xxxxxxxxxx> > Signed-off-by: Easwar Hariharan <eahariha@xxxxxxxxxxxxxxxxxxx> Acked-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> regards, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Attachment:
signature.asc
Description: PGP signature
- References:
- [PATCH v3 00/16] Converge on using secs_to_jiffies() part two
- From: Easwar Hariharan
- [PATCH v3 13/16] spi: spi-imx: convert timeouts to secs_to_jiffies()
- From: Easwar Hariharan
- [PATCH v3 00/16] Converge on using secs_to_jiffies() part two
- Prev by Date: Re: [PATCH v3 08/16] ata: libata-zpodd: convert timeouts to secs_to_jiffies()
- Next by Date: Re: (subset) [PATCH v3 00/16] Converge on using secs_to_jiffies() part two
- Previous by thread: [PATCH v3 13/16] spi: spi-imx: convert timeouts to secs_to_jiffies()
- Next by thread: [PATCH v3 11/16] nvme: convert timeouts to secs_to_jiffies()
- Index(es):
![]() |