Searched refs:last_input (Results 1 - 2 of 2) sorted by relevance

/linux-master/mm/damon/
H A Dcore-test.h461 unsigned long last_input = 900000, current_score = 200; local
469 damon_feed_loop_next_input(last_input, current_score),
470 last_input);
478 damon_feed_loop_next_input(last_input, current_score),
479 last_input);
486 damon_feed_loop_next_input(last_input, 200),
487 damon_feed_loop_next_input(last_input, 2000));
H A Dcore.c1094 * @last_input The last input.
1095 * @score Current score that made with @last_input.
1105 * next_input = max(last_input * ((goal - current) / goal + 1), 1)
1112 static unsigned long damon_feed_loop_next_input(unsigned long last_input, argument
1118 unsigned long compensation = last_input * score_goal_diff_bp / 10000;
1123 return last_input + compensation;
1124 if (last_input > compensation + min_input)
1125 return last_input - compensation;

Completed in 102 milliseconds