Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 39) sorted by relevance

12

/kernel/sched/
Dcpufreq_schedutil.c73 unsigned long max; member
180 unsigned long util, unsigned long max) in get_next_freq() argument
186 freq = (freq + (freq >> 2)) * util / max; in get_next_freq()
203 static void sugov_get_util(unsigned long *util, unsigned long *max, u64 time) in sugov_get_util() argument
223 *max = max_cap; in sugov_get_util()
241 unsigned long *max) in sugov_iowait_boost() argument
249 if (*util * boost_max < *max * boost_util) { in sugov_iowait_boost()
251 *max = boost_max; in sugov_iowait_boost()
275 unsigned long util, max; in sugov_update_single() local
290 sugov_get_util(&util, &max, time); in sugov_update_single()
[all …]
Dwalt.c569 u32 max = 0, avg, demand; in update_history() local
582 if (hist[widx] > max) in update_history()
583 max = hist[widx]; in update_history()
589 if (hist[widx] > max) in update_history()
590 max = hist[widx]; in update_history()
598 demand = max; in update_history()
604 demand = max(avg, runtime); in update_history()
Dcputime.c308 static inline cputime_t account_other_time(cputime_t max) in account_other_time() argument
315 accounted = steal_account_process_time(max); in account_other_time()
317 if (accounted < max) in account_other_time()
318 accounted += irqtime_account_hi_update(max - accounted); in account_other_time()
320 if (accounted < max) in account_other_time()
321 accounted += irqtime_account_si_update(max - accounted); in account_other_time()
Dtune.c261 boost_max = max(boost_max, bg->group[idx].boost); in schedtune_cpu_update()
266 boost_max = max(boost_max, 0); in schedtune_cpu_update()
323 bg->group[idx].tasks = max(0, tasks); in schedtune_tasks_update()
430 bg->group[src_bg].tasks = max(0, tasks); in schedtune_can_attach()
Dstop_task.c71 max(curr->se.statistics.exec_max, delta_exec)); in put_prev_task_stop()
Dfair.c862 max(delta_exec, curr->statistics.exec_max)); in update_curr()
930 max(schedstat_val(se->statistics.wait_max), delta)); in update_stats_wait_end()
1125 return max(smin, smax); in task_scan_max()
2513 start = max(start, vma->vm_start); in task_numa_work()
3832 max((u64)schedstat_val(se->statistics.slice_max), in set_next_entity()
5264 return max(rq->cpu_load[type-1], total); in target_load()
5551 max_util = max(max_util, util); in group_max_util()
5559 max_util = max(max_util, capacity_min_of(cpu)); in group_max_util()
6804 new_util = max(min_util, new_util); in find_best_target()
6813 min_capped_util = max(new_util, capacity_min_of(i)); in find_best_target()
[all …]
/kernel/
Dlatencytop.c128 if (lat->time > latency_record[i].max) in account_global_scheduler_latency()
129 latency_record[i].max = lat->time; in account_global_scheduler_latency()
191 lat.max = usecs; in __account_scheduler_latency()
218 if (lat.time > mylat->max) in __account_scheduler_latency()
219 mylat->max = lat.time; in __account_scheduler_latency()
250 lr->count, lr->time, lr->max); in lstats_show()
Dgroups.c82 int base, max, stride; in groups_sort() local
90 max = gidsetsize - stride; in groups_sort()
91 for (base = 0; base < max; base++) { in groups_sort()
Ducount.c197 int max; in inc_ucount() local
199 max = READ_ONCE(tns->ucount_max[type]); in inc_ucount()
200 if (!atomic_inc_below(&iter->ucount[type], max)) in inc_ucount()
Dkexec_file.c382 temp_start = max(start, kbuf->buf_min); in locate_mem_hole_bottom_up()
471 kbuf->buf_align = max(buf_align, PAGE_SIZE); in kexec_add_buffer()
616 unsigned long max, int top_down) in __kexec_load_purgatory() argument
734 buf_align, min, max, top_down, in __kexec_load_purgatory()
853 unsigned long max, int top_down, in kexec_load_purgatory() argument
878 ret = __kexec_load_purgatory(image, min, max, top_down); in kexec_load_purgatory()
Dresource.c47 resource_size_t min, max, align; member
586 resource_size_t max) in resource_clip() argument
590 if (res->end > max) in resource_clip()
591 res->end = max; in resource_clip()
624 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
727 resource_size_t max, resource_size_t align, in allocate_resource() argument
741 constraint.max = max; in allocate_resource()
Drange.c42 common_start = max(range[i].start, start); in add_range_with_merge()
49 end = max(range[i].end, end); in add_range_with_merge()
Dparams.c452 unsigned int min, unsigned int max, in param_array() argument
472 if (*num == max) { in param_array()
473 pr_err("%s: can only take %i arguments\n", name, max); in param_array()
503 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
514 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
534 for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) in param_array_free()
Dsysctl.c2411 int *max; member
2422 (param->max && *param->max < val)) in do_proc_dointvec_minmax_conv()
2459 .max = (int *) table->extra2, in proc_dointvec_minmax()
2503 unsigned long *i, *min, *max; in __do_proc_doulongvec_minmax() local
2515 max = (unsigned long *) table->extra2; in __do_proc_doulongvec_minmax()
2555 if ((min && val < *min) || (max && val > *max)) in __do_proc_doulongvec_minmax()
/kernel/time/
Dtest_udelay.c38 int min = 0, max = 0, fail_count = 0; in udelay_test_single() local
56 if (i == 0 || time_passed > max) in udelay_test_single()
57 max = time_passed; in udelay_test_single()
68 (usecs * 1000) - allowed_error_ns, min, avg, max); in udelay_test_single()
Dtimekeeping.c188 cycle_t now, last, mask, max, delta; in timekeeping_get_delta() local
203 max = tkr->clock->max_cycles; in timekeeping_get_delta()
218 if (unlikely(delta > max)) { in timekeeping_get_delta()
1699 u64 num, max = ULLONG_MAX; in timekeeping_resume() local
1712 do_div(max, mult); in timekeeping_resume()
1713 if (cycle_delta > max) { in timekeeping_resume()
1714 num = div64_u64(cycle_delta, max); in timekeeping_resume()
1715 nsec = (((u64) max * mult) >> shift) * num; in timekeeping_resume()
1716 cycle_delta -= num * max; in timekeeping_resume()
1906 u32 max = tk->tkr_mono.clock->maxadj; in timekeeping_freqadjust() local
[all …]
Dntp.c341 time_freq = max(freq_adj, -MAXFREQ_SCALED); in ntp_update_offset()
623 time_freq = max(time_freq, -MAXFREQ_SCALED); in process_adjtimex_modes()
639 time_constant = max(time_constant, 0l); in process_adjtimex_modes()
Dtimer.c1964 static void __sched do_usleep_range(unsigned long min, unsigned long max) in do_usleep_range() argument
1970 delta = (u64)(max - min) * NSEC_PER_USEC; in do_usleep_range()
1985 void __sched usleep_range(unsigned long min, unsigned long max) in usleep_range() argument
1988 do_usleep_range(min, max); in usleep_range()
Dclocksource.c972 max((ssize_t)PAGE_SIZE - count, (ssize_t)0), in sysfs_show_available_clocksources()
978 max((ssize_t)PAGE_SIZE - count, (ssize_t)0), "\n"); in sysfs_show_available_clocksources()
/kernel/locking/
Dlocktorture.c644 long max = 0, min = statp ? statp[0].n_lock_acquired : 0; in __torture_print_stats() local
652 if (max < statp[i].n_lock_fail) in __torture_print_stats()
653 max = statp[i].n_lock_fail; in __torture_print_stats()
660 sum, max, min, max / 2 > min ? "???" : "", in __torture_print_stats()
Dlockdep.c178 if (time > lt->max) in lock_time_inc()
179 lt->max = time; in lock_time_inc()
193 if (src->max > dst->max) in lock_time_add()
194 dst->max = src->max; in lock_time_add()
644 count = max(count, class->name_version); in count_matching_names()
/kernel/events/
Duprobes.c991 find_node_in_range(struct inode *inode, loff_t min, loff_t max) in find_node_in_range() argument
1003 if (max < u->offset) in find_node_in_range()
1023 loff_t min, max; in build_probe_list() local
1029 max = min + (end - start) - 1; in build_probe_list()
1032 n = find_node_in_range(inode, min, max); in build_probe_list()
1043 if (u->inode != inode || u->offset > max) in build_probe_list()
1094 loff_t min, max; in vma_has_uprobes() local
1101 max = min + (end - start) - 1; in vma_has_uprobes()
1104 n = find_node_in_range(inode, min, max); in vma_has_uprobes()
/kernel/trace/
DKconfig396 bool "Trace max stack"
634 last=632 first=3672 max=632 min=632 avg=316 std=446 std^2=199712
635 last=278 first=3672 max=632 min=278 avg=303 std=316 std^2=100337
636 last=277 first=3672 max=632 min=277 avg=296 std=258 std^2=67064
637 last=273 first=3672 max=632 min=273 avg=292 std=224 std^2=50411
638 last=273 first=3672 max=632 min=273 avg=288 std=200 std^2=40389
639 last=281 first=3672 max=632 min=273 avg=287 std=183 std^2=33666
Dtrace.h528 static __always_inline int trace_test_and_set_recursion(int start, int max) in trace_test_and_set_recursion() argument
534 if ((val & TRACE_CONTEXT_MASK) > max) in trace_test_and_set_recursion()
Dtrace_events_filter.c1447 int max; member
1455 if (WARN_ON(d->count++ > d->max)) { in check_pred_tree_cb()
1477 .max = 3 * filter->n_preds, in check_pred_tree()

12