[PATCH 0/2] firewire: core: use helper macro to calculate jiffies count

Takashi Sakamoto posted 2 patches 2 weeks, 3 days ago
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(-)
[PATCH 0/2] firewire: core: use helper macro to calculate jiffies count
Posted by Takashi Sakamoto 2 weeks, 3 days ago
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
Re: [PATCH 0/2] firewire: core: use helper macro to calculate jiffies count
Posted by Takashi Sakamoto 2 weeks, 2 days ago
On Mon, Sep 15, 2025 at 11:42:30AM +0900, Takashi Sakamoto wrote:
> 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(-)

Applied to for-next branch.


Regards

Takashi Sakamoto