Home
last modified time | relevance | path

Searched refs:SCX_CPUPERF_ONE (Results 1 – 3 of 3) sorted by relevance

/linux/tools/sched_ext/
H A Dscx_qmap.bpf.c83 [0] = SCX_CPUPERF_ONE * 0 / 4,
84 [1] = SCX_CPUPERF_ONE * 1 / 4,
85 [2] = SCX_CPUPERF_ONE * 2 / 4,
86 [3] = SCX_CPUPERF_ONE * 3 / 4,
87 [4] = SCX_CPUPERF_ONE * 4 / 4,
747 u64 cap_sum = 0, cur_sum = 0, cur_min = SCX_CPUPERF_ONE, cur_max = 0; in monitor_cpuperf()
748 u64 target_sum = 0, target_min = SCX_CPUPERF_ONE, target_max = 0; in monitor_cpuperf()
775 cur_sum += cur * cap / SCX_CPUPERF_ONE; in monitor_cpuperf()
791 cpuperf_avg = cur_sum * SCX_CPUPERF_ONE / cap_sum; in monitor_cpuperf()
/linux/kernel/sched/
H A Dext_internal.h19 SCX_CPUPERF_ONE = SCHED_CAPACITY_SCALE, enumerator
H A Dext.c4924 cpu_rq(cpu)->scx.cpuperf_target = SCX_CPUPERF_ONE; in scx_enable()
6828 * %SCX_CPUPERF_ONE]. See scx_bpf_cpuperf_cur().
6840 return SCX_CPUPERF_ONE; in scx_bpf_cpuperf_cur()
6848 * The return value is in the range [1, %SCX_CPUPERF_ONE].
6853 * scx_bpf_cpuperf_cap() * scx_bpf_cpuperf_cur() / %SCX_CPUPERF_ONE
6855 * The result is in the range [1, %SCX_CPUPERF_ONE].
6867 return SCX_CPUPERF_ONE; in scx_bpf_cpuperf_set()
6873 * @perf: target performance level [0, %SCX_CPUPERF_ONE] in scx_bpf_cpuperf_set()
6876 * relative scale between 0 and %SCX_CPUPERF_ONE. This determines how the in scx_bpf_cpuperf_set()
6894 if (unlikely(perf > SCX_CPUPERF_ONE)) { in scx_bpf_cpuperf_set()
[all...]