public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Bluetooth: Converge on using secs_to_jiffies()
@ 2025-02-19 22:51 Easwar Hariharan
  2025-02-19 22:51 ` [PATCH 1/4] Bluetooth: hci_vhci: convert timeouts to secs_to_jiffies() Easwar Hariharan
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Easwar Hariharan @ 2025-02-19 22:51 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz, Johan Hedberg,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman
  Cc: linux-bluetooth, linux-kernel, netdev, Easwar Hariharan

This series converts users of msecs_to_jiffies() that either use the
multiply pattern of either of:
- msecs_to_jiffies(N*1000) or
- msecs_to_jiffies(N*MSEC_PER_SEC)

where N is a constant or an expression, to avoid the multiplication.

The conversion is made with Coccinelle with the secs_to_jiffies() script
in scripts/coccinelle/misc. Attention is paid to what the best change
can be rather than restricting to what the tool provides.

While here, convert a couple instances where the timeouts are
denominated in seconds manually.

This series is based on next-20250219

Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
---
Easwar Hariharan (4):
      Bluetooth: hci_vhci: convert timeouts to secs_to_jiffies()
      Bluetooth: MGMT: convert timeouts to secs_to_jiffies()
      Bluetooth: SMP: convert timeouts to secs_to_jiffies()
      Bluetooth: L2CAP: convert timeouts to secs_to_jiffies()

 drivers/bluetooth/hci_vhci.c  | 4 ++--
 include/net/bluetooth/l2cap.h | 4 ++--
 net/bluetooth/hci_sync.c      | 2 +-
 net/bluetooth/l2cap_core.c    | 4 ++--
 net/bluetooth/mgmt.c          | 6 +++---
 net/bluetooth/smp.c           | 2 +-
 6 files changed, 11 insertions(+), 11 deletions(-)
---
base-commit: 8936cec5cb6e27649b86fabf383d7ce4113bba49
change-id: 20250219-bluetooth-converge-secs-to-jiffies-22847c90dfe7

Best regards,
-- 
Easwar Hariharan <eahariha@linux.microsoft.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-20 18:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-19 22:51 [PATCH 0/4] Bluetooth: Converge on using secs_to_jiffies() Easwar Hariharan
2025-02-19 22:51 ` [PATCH 1/4] Bluetooth: hci_vhci: convert timeouts to secs_to_jiffies() Easwar Hariharan
2025-02-19 22:51 ` [PATCH 2/4] Bluetooth: MGMT: " Easwar Hariharan
2025-02-19 22:51 ` [PATCH 3/4] Bluetooth: SMP: " Easwar Hariharan
2025-02-19 22:51 ` [PATCH 4/4] Bluetooth: L2CAP: " Easwar Hariharan
2025-02-20 18:10 ` [PATCH 0/4] Bluetooth: Converge on using secs_to_jiffies() patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox