diff options
| author | Takashi Sakamoto <[email protected]> | 2025-09-15 02:42:31 +0000 |
|---|---|---|
| committer | Takashi Sakamoto <[email protected]> | 2025-09-15 02:49:34 +0000 |
| commit | 379b870c28c6a615a101df7986eba70fea99eff7 (patch) | |
| tree | 49edfde962832bad9dc418da16e2a0850d299cf5 /drivers/firewire/core-cdev.c | |
| parent | firewire: core: use macro expression for not-registered state of BUS_MANAGER_ID (diff) | |
| download | kernel-379b870c28c6a615a101df7986eba70fea99eff7.tar.gz kernel-379b870c28c6a615a101df7986eba70fea99eff7.zip | |
firewire: core: use helper macros instead of direct access to HZ
There are some macros available to convert usecs, msecs, and secs into
jiffies count.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Sakamoto <[email protected]>
Diffstat (limited to 'drivers/firewire/core-cdev.c')
| -rw-r--r-- | drivers/firewire/core-cdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index 78b10c6ef7fe..9e90c79becdb 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c @@ -1324,8 +1324,8 @@ static void iso_resource_work(struct work_struct *work) todo = r->todo; // Allow 1000ms grace period for other reallocations. if (todo == ISO_RES_ALLOC && - time_before64(get_jiffies_64(), client->device->card->reset_jiffies + HZ)) { - schedule_iso_resource(r, DIV_ROUND_UP(HZ, 3)); + time_before64(get_jiffies_64(), client->device->card->reset_jiffies + secs_to_jiffies(1))) { + schedule_iso_resource(r, msecs_to_jiffies(333)); skip = true; } else { // We could be called twice within the same generation. |
