Lines Matching refs:delta
102 accumulate_sum(u64 delta, struct sched_avg *sa, in accumulate_sum() argument
105 u32 contrib = (u32)delta; /* p == 0 -> delta < 1024 */ in accumulate_sum()
108 delta += sa->period_contrib; in accumulate_sum()
109 periods = delta / 1024; /* A period is 1024us (~1ms) */ in accumulate_sum()
123 delta %= 1024; in accumulate_sum()
136 1024 - sa->period_contrib, delta); in accumulate_sum()
139 sa->period_contrib = delta; in accumulate_sum()
183 u64 delta; in ___update_load_sum() local
185 delta = now - sa->last_update_time; in ___update_load_sum()
190 if ((s64)delta < 0) { in ___update_load_sum()
199 delta >>= 10; in ___update_load_sum()
200 if (!delta) in ___update_load_sum()
203 sa->last_update_time += delta << 10; in ___update_load_sum()
226 if (!accumulate_sum(delta, sa, load, runnable, running)) in ___update_load_sum()