From: Thomas Gleixner Date: Thu, 23 Sep 2021 16:04:27 +0000 (+0200) Subject: can: bcm: Use hrtimer_forward_now() X-Git-Tag: v5.16-rc1~159^2~104^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b44a927e195087ff04fa7fcd3c3b08015db0d1c;p=thirdparty%2Fkernel%2Flinux.git can: bcm: Use hrtimer_forward_now() hrtimer_forward_now() provides the same functionality as the open coded hrimer_forward() invocation. Prepares for removal of hrtimer_forward() from the public interfaces. Link: https://lore.kernel.org/all/20210923153339.684546907@linutronix.de Signed-off-by: Thomas Gleixner Cc: Oliver Hartkopp Cc: linux-can@vger.kernel.org Cc: Marc Kleine-Budde Cc: netdev@vger.kernel.org Cc: Jakub Kicinski Cc: "David S. Miller" Signed-off-by: Marc Kleine-Budde --- diff --git a/net/can/bcm.c b/net/can/bcm.c index 508f67de0b801..bc88d901a1c0c 100644 --- a/net/can/bcm.c +++ b/net/can/bcm.c @@ -625,7 +625,7 @@ static enum hrtimer_restart bcm_rx_thr_handler(struct hrtimer *hrtimer) struct bcm_op *op = container_of(hrtimer, struct bcm_op, thrtimer); if (bcm_rx_thr_flush(op)) { - hrtimer_forward(hrtimer, ktime_get(), op->kt_ival2); + hrtimer_forward_now(hrtimer, op->kt_ival2); return HRTIMER_RESTART; } else { /* rearm throttle handling */