diff options
Diffstat (limited to 'kernel/time/tick-sched.c')
-rw-r--r-- | kernel/time/tick-sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 911834b33b8a..73cc4901336d 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -400,7 +400,7 @@ static void tick_nohz_stop_sched_tick(struct tick_sched *ts, ktime_t now) | |||
400 | if (!ts->tick_stopped) { | 400 | if (!ts->tick_stopped) { |
401 | select_nohz_load_balancer(1); | 401 | select_nohz_load_balancer(1); |
402 | 402 | ||
403 | ts->idle_tick = hrtimer_get_expires(&ts->sched_timer); | 403 | ts->last_tick = hrtimer_get_expires(&ts->sched_timer); |
404 | ts->tick_stopped = 1; | 404 | ts->tick_stopped = 1; |
405 | } | 405 | } |
406 | 406 | ||
@@ -526,7 +526,7 @@ ktime_t tick_nohz_get_sleep_length(void) | |||
526 | static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) | 526 | static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) |
527 | { | 527 | { |
528 | hrtimer_cancel(&ts->sched_timer); | 528 | hrtimer_cancel(&ts->sched_timer); |
529 | hrtimer_set_expires(&ts->sched_timer, ts->idle_tick); | 529 | hrtimer_set_expires(&ts->sched_timer, ts->last_tick); |
530 | 530 | ||
531 | while (1) { | 531 | while (1) { |
532 | /* Forward the time to expire in the future */ | 532 | /* Forward the time to expire in the future */ |