Searched refs:win (Results 1 – 1 of 1) sorted by relevance
450 static void window_reset(struct psi_window *win, u64 now, u64 value, in window_reset() argument453 win->start_time = now; in window_reset()454 win->start_value = value; in window_reset()455 win->prev_growth = prev_growth; in window_reset()469 static u64 window_update(struct psi_window *win, u64 now, u64 value) in window_update() argument474 elapsed = now - win->start_time; in window_update()475 growth = value - win->start_value; in window_update()483 if (elapsed > win->size) in window_update()484 window_reset(win, now, value, growth); in window_update()488 remaining = win->size - elapsed; in window_update()[all …]