aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 65eb484dc268..49a5fb0cdea0 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -788,8 +788,8 @@ static void update_curr_load(struct rq *rq, u64 now)
788 u64 start; 788 u64 start;
789 789
790 start = ls->load_update_start; 790 start = ls->load_update_start;
791 ls->load_update_start = now; 791 ls->load_update_start = rq->clock;
792 ls->delta_stat += now - start; 792 ls->delta_stat += rq->clock - start;
793 /* 793 /*
794 * Stagger updates to ls->delta_fair. Very frequent updates 794 * Stagger updates to ls->delta_fair. Very frequent updates
795 * can be expensive. 795 * can be expensive.
@@ -1979,8 +1979,8 @@ static void update_cpu_load(struct rq *this_rq)
1979 exec_delta64 = ls->delta_exec + 1; 1979 exec_delta64 = ls->delta_exec + 1;
1980 ls->delta_exec = 0; 1980 ls->delta_exec = 0;
1981 1981
1982 sample_interval64 = now - ls->load_update_last; 1982 sample_interval64 = this_rq->clock - ls->load_update_last;
1983 ls->load_update_last = now; 1983 ls->load_update_last = this_rq->clock;
1984 1984
1985 if ((s64)sample_interval64 < (s64)TICK_NSEC) 1985 if ((s64)sample_interval64 < (s64)TICK_NSEC)
1986 sample_interval64 = TICK_NSEC; 1986 sample_interval64 = TICK_NSEC;