diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index f79dcba4b2c1861e4ab3148f0b9bcb2c5feb613b..3fed27c88c0134d66df6d4fc80da2a4537d1cd08 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -304,6 +304,13 @@ static inline int hrtimer_is_queued(struct hrtimer *timer) extern unsigned long hrtimer_forward(struct hrtimer *timer, ktime_t now, ktime_t interval); +/* Forward a hrtimer so it expires after the hrtimer's current now */ +static inline unsigned long hrtimer_forward_now(struct hrtimer *timer, + ktime_t interval) +{ + return hrtimer_forward(timer, timer->base->get_time(), interval); +} + /* Precise sleep: */ extern long hrtimer_nanosleep(struct timespec *rqtp, struct timespec *rmtp,