summaryrefslogtreecommitdiffstats
path: root/kernel/fs/timerfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/timerfd.c')
-rw-r--r--kernel/fs/timerfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fs/timerfd.c b/kernel/fs/timerfd.c
index 64fb86066..c4bc14fe0 100644
--- a/kernel/fs/timerfd.c
+++ b/kernel/fs/timerfd.c
@@ -153,7 +153,7 @@ static ktime_t timerfd_get_remaining(struct timerfd_ctx *ctx)
if (isalarm(ctx))
remaining = alarm_expires_remaining(&ctx->t.alarm);
else
- remaining = hrtimer_expires_remaining(&ctx->t.tmr);
+ remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr);
return remaining.tv64 < 0 ? ktime_set(0, 0): remaining;
}