The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] firewire: core: use helper macro to calculate jiffies count
@ 2025-09-15  2:42 Takashi Sakamoto
  2025-09-15  2:42 ` [PATCH 1/2] firewire: core: use helper macros instead of direct access to HZ Takashi Sakamoto
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Takashi Sakamoto @ 2025-09-15  2:42 UTC (permalink / raw)
  To: linux1394-devel; +Cc: linux-kernel

Hi,

In this subsystem, all types of timeouts are managed using kernel timer
wheel, thus they are based on jiffies grain. Some macros are available
to calculate jiffies count, and they have some advantages, For example,
no need to access to HZ macro or jiffies itself directly.

This patchset replaces several lines with these macros.

Takashi Sakamoto (2):
  firewire: core: use helper macros instead of direct access to HZ
  firewire: core: use helper macro to compare against current jiffies

 drivers/firewire/core-card.c        | 17 +++++++----------
 drivers/firewire/core-cdev.c        |  4 ++--
 drivers/firewire/core-device.c      |  9 ++++-----
 drivers/firewire/core-transaction.c |  4 ++--
 drivers/firewire/core.h             |  2 ++
 5 files changed, 17 insertions(+), 19 deletions(-)


base-commit: 2ba08d1bad79cc8d9c82f529adc01f27118e0ca7
-- 
2.48.1


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

end of thread, other threads:[~2025-09-15 23:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-15  2:42 [PATCH 0/2] firewire: core: use helper macro to calculate jiffies count Takashi Sakamoto
2025-09-15  2:42 ` [PATCH 1/2] firewire: core: use helper macros instead of direct access to HZ Takashi Sakamoto
2025-09-15  2:42 ` [PATCH 2/2] firewire: core: use helper macro to compare against current jiffies Takashi Sakamoto
2025-09-15 23:20 ` [PATCH 0/2] firewire: core: use helper macro to calculate jiffies count Takashi Sakamoto

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