Home
last modified time | relevance | path

Searched refs:nomvsum (Results 1 – 2 of 2) sorted by relevance

/linux/mm/damon/tests/
H A Dcore-kunit.h397 unsigned int mvsum = 50000, nomvsum = 50000, len_window = 10; in damon_test_moving_sum() local
404 mvsum = damon_moving_sum(mvsum, nomvsum, len_window, in damon_test_moving_sum()
/linux/mm/damon/
H A Dcore.c2743 * @nomvsum: Non-moving sum of the last discrete @len_window window values.
2753 * assumed past value to drop from @nomvsum and @len_window. @nomvsum is a
2755 * have 25 values, @nomvsum is the sum of the 11th to 20th values of the 25
2756 * values. Hence, this function simply drops @nomvsum / @len_window from
2759 * For example, if @len_window is 10 and @nomvsum is 50, the last 10 values for
2774 static unsigned int damon_moving_sum(unsigned int mvsum, unsigned int nomvsum, in damon_moving_sum() argument
2777 return mvsum - nomvsum / len_window + new_value; in damon_moving_sum()