Lines Matching refs:threshold
172 int threshold; in calculate_pressure_threshold() local
184 threshold = max(1, (int)(watermark_distance / num_online_cpus())); in calculate_pressure_threshold()
189 threshold = min(125, threshold); in calculate_pressure_threshold()
191 return threshold; in calculate_pressure_threshold()
196 int threshold; in calculate_normal_threshold() local
231 threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem)); in calculate_normal_threshold()
236 threshold = min(125, threshold); in calculate_normal_threshold()
238 return threshold; in calculate_normal_threshold()
249 int threshold; in refresh_zone_stat_thresholds() local
262 threshold = calculate_normal_threshold(zone); in refresh_zone_stat_thresholds()
268 = threshold; in refresh_zone_stat_thresholds()
273 = max(threshold, pgdat_threshold); in refresh_zone_stat_thresholds()
282 max_drift = num_online_cpus() * threshold; in refresh_zone_stat_thresholds()
294 int threshold; in set_pgdat_percpu_threshold() local
302 threshold = (*calculate_pressure)(zone); in set_pgdat_percpu_threshold()
305 = threshold; in set_pgdat_percpu_threshold()