Lines Matching refs:sum
565 u64 sum = 0; in update_history() local
576 sum += hist[widx]; in update_history()
583 sum += hist[widx]; in update_history()
588 p->ravg.sum = 0; in update_history()
595 avg = div64_u64(sum, walt_ravg_hist_size); in update_history()
622 p->ravg.sum += delta; in add_to_task_demand()
623 if (unlikely(p->ravg.sum > walt_ravg_window)) in add_to_task_demand()
624 p->ravg.sum = walt_ravg_window; in add_to_task_demand()
694 update_history(rq, p, p->ravg.sum, 1, event); in update_task_demand()
715 update_history(rq, p, p->ravg.sum, 1, event); in update_task_demand()
781 u32 sum = 0; in reset_task_stats() local
784 sum = EXITING_TASK_MARKER; in reset_task_stats()
788 p->ravg.sum_history[0] = sum; in reset_task_stats()