aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wwan/iosm/iosm_ipc_imem.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2021-09-23 18:04:23 +0200
committerDavid S. Miller <[email protected]>2021-09-24 14:09:40 +0100
commite93c1e034837a2078a56c66610893fb1b338c64e (patch)
tree893e6139b7dbe7dcbc18fd6e52525b58097194cc /drivers/net/wwan/iosm/iosm_ipc_imem.c
parentabecbfcdb935af500f47458dd5a1b044c8585c0b (diff)
net: iosm: Use hrtimer_forward_now()
hrtimer_forward_now() is providing the same functionality. Preparation for making hrtimer_forward() timer core code only. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Loic Poulain <[email protected]> Cc: [email protected] Cc: Sergey Ryazanov <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: M Chetan Kumar <[email protected]> Cc: Johannes Berg <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Intel Corporation <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_imem.c')
-rw-r--r--drivers/net/wwan/iosm/iosm_ipc_imem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wwan/iosm/iosm_ipc_imem.c b/drivers/net/wwan/iosm/iosm_ipc_imem.c
index 1cf49e9959f4..cff3b43ca4d7 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_imem.c
+++ b/drivers/net/wwan/iosm/iosm_ipc_imem.c
@@ -476,8 +476,8 @@ static enum hrtimer_restart ipc_imem_startup_timer_cb(struct hrtimer *hr_timer)
container_of(hr_timer, struct iosm_imem, startup_timer);
if (ktime_to_ns(ipc_imem->hrtimer_period)) {
- hrtimer_forward(&ipc_imem->startup_timer, ktime_get(),
- ipc_imem->hrtimer_period);
+ hrtimer_forward_now(&ipc_imem->startup_timer,
+ ipc_imem->hrtimer_period);
result = HRTIMER_RESTART;
}