Searched refs:threshold (Results 1 – 2 of 2) sorted by relevance
174 int threshold; in calculate_pressure_threshold() local186 threshold = max(1, (int)(watermark_distance / num_online_cpus())); in calculate_pressure_threshold()191 threshold = min(125, threshold); in calculate_pressure_threshold()193 return threshold; in calculate_pressure_threshold()198 int threshold; in calculate_normal_threshold() local233 threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem)); in calculate_normal_threshold()238 threshold = min(125, threshold); in calculate_normal_threshold()240 return threshold; in calculate_normal_threshold()251 int threshold; in refresh_zone_stat_thresholds() local264 threshold = calculate_normal_threshold(zone); in refresh_zone_stat_thresholds()[all …]
3986 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--) in __mem_cgroup_threshold()3998 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++) in __mem_cgroup_threshold()4023 if (_a->threshold > _b->threshold) in compare_thresholds()4026 if (_a->threshold < _b->threshold) in compare_thresholds()4058 unsigned long threshold; in __mem_cgroup_usage_register_event() local4062 ret = page_counter_memparse(args, "-1", &threshold); in __mem_cgroup_usage_register_event()4099 new->entries[size - 1].threshold = threshold; in __mem_cgroup_usage_register_event()4108 if (new->entries[i].threshold <= usage) { in __mem_cgroup_usage_register_event()4196 if (new->entries[j].threshold <= usage) { in __mem_cgroup_usage_unregister_event()