Searched refs:threshold (Results 1 – 3 of 3) sorted by relevance
172 int threshold; in calculate_pressure_threshold() local184 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() local231 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() local262 threshold = calculate_normal_threshold(zone); in refresh_zone_stat_thresholds()[all …]
4179 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--) in __mem_cgroup_threshold()4191 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++) in __mem_cgroup_threshold()4216 if (_a->threshold > _b->threshold) in compare_thresholds()4219 if (_a->threshold < _b->threshold) in compare_thresholds()4251 unsigned long threshold; in __mem_cgroup_usage_register_event() local4255 ret = page_counter_memparse(args, "-1", &threshold); in __mem_cgroup_usage_register_event()4291 new->entries[size - 1].threshold = threshold; in __mem_cgroup_usage_register_event()4300 if (new->entries[i].threshold <= usage) { in __mem_cgroup_usage_register_event()4394 if (new->entries[j].threshold <= usage) { in __mem_cgroup_usage_unregister_event()
795 static void kdamond_merge_regions(struct damon_ctx *c, unsigned int threshold, in kdamond_merge_regions() argument801 damon_merge_regions_of(t, threshold, sz_limit); in kdamond_merge_regions()