Searched refs:SCX_CPUPERF_ONE (Results 1 – 2 of 2) sorted by relevance
/linux/tools/sched_ext/ |
H A D | scx_qmap.bpf.c | 81 [0] = SCX_CPUPERF_ONE * 0 / 4, 82 [1] = SCX_CPUPERF_ONE * 1 / 4, 83 [2] = SCX_CPUPERF_ONE * 2 / 4, 84 [3] = SCX_CPUPERF_ONE * 3 / 4, 85 [4] = SCX_CPUPERF_ONE * 4 / 4, 709 u64 cap_sum = 0, cur_sum = 0, cur_min = SCX_CPUPERF_ONE, cur_max = 0; in monitor_cpuperf() 710 u64 target_sum = 0, target_min = SCX_CPUPERF_ONE, target_max = 0; in monitor_cpuperf() 737 cur_sum += cur * cap / SCX_CPUPERF_ONE; in monitor_cpuperf() 753 cpuperf_avg = cur_sum * SCX_CPUPERF_ONE / cap_sum; in monitor_cpuperf()
|
/linux/kernel/sched/ |
H A D | ext.c | 23 SCX_CPUPERF_ONE = SCHED_CAPACITY_SCALE, enumerator 5600 cpu_rq(cpu)->scx.cpuperf_target = SCX_CPUPERF_ONE; in scx_enable() 7266 * %SCX_CPUPERF_ONE]. See scx_bpf_cpuperf_cur(). 7273 return SCX_CPUPERF_ONE; in scx_bpf_cpuperf_cap() 7281 * The return value is in the range [1, %SCX_CPUPERF_ONE]. 7286 * scx_bpf_cpuperf_cap() * scx_bpf_cpuperf_cur() / %SCX_CPUPERF_ONE 7288 * The result is in the range [1, %SCX_CPUPERF_ONE]. 7295 return SCX_CPUPERF_ONE; in scx_bpf_cpuperf_cur() 7301 * @perf: target performance level [0, %SCX_CPUPERF_ONE] 7304 * relative scale between 0 and %SCX_CPUPERF_ONE [all...] |