Home
last modified time | relevance | path

Searched refs:max_cap (Results 1 – 10 of 10) sorted by relevance

/linux/kernel/sched/
H A Dcpufreq_schedutil.c337 * @max_cap: the max CPU capacity
352 unsigned long max_cap) in sugov_iowait_apply()
379 return (sg_cpu->iowait_boost * max_cap) >> SCHED_CAPACITY_SHIFT; in sugov_hold_freq()
425 u64 time, unsigned long max_cap, in sugov_update_single_common()
438 boost = sugov_iowait_apply(sg_cpu, time, max_cap); in sugov_update_single_freq() local
450 unsigned long max_cap; in sugov_update_single_freq()
453 max_cap = arch_scale_cpu_capacity(sg_cpu->cpu); in sugov_update_single_freq()
455 if (!sugov_update_single_common(sg_cpu, time, max_cap, flags)) in sugov_update_single_freq()
458 next_f = get_next_freq(sg_policy, sg_cpu->util, max_cap); in sugov_update_single_freq()
491 unsigned long max_cap; in sugov_update_single_perf()
340 sugov_iowait_apply(struct sugov_cpu * sg_cpu,u64 time,unsigned long max_cap) sugov_iowait_apply() argument
413 sugov_update_single_common(struct sugov_cpu * sg_cpu,u64 time,unsigned long max_cap,unsigned int flags) sugov_update_single_common() argument
479 unsigned long max_cap; sugov_update_single_perf() local
510 unsigned long util = 0, max_cap; sugov_next_freq_shared() local
[all...]
H A Dcpudeadline.c124 unsigned long cap, max_cap = 0; in cpudl_find() local
137 if (cap > max_cap || in cpudl_find()
138 (cpu == task_cpu(p) && cap == max_cap)) { in cpudl_find()
139 max_cap = cap; in cpudl_find()
H A Drt.c458 unsigned int max_cap; in rt_task_fits_capacity() local
466 max_cap = uclamp_eff_value(p, UCLAMP_MAX); in rt_task_fits_capacity()
470 return cpu_cap >= min(min_cap, max_cap); in rt_task_fits_capacity()
H A Dfair.c9567 unsigned long busy_time, max_cap = arch_scale_cpu_capacity(prev_cpu); in eenv_task_busy_time() local
9570 if (unlikely(irq >= max_cap)) in eenv_task_busy_time()
9571 busy_time = max_cap; in eenv_task_busy_time()
9573 busy_time = scale_irq_capacity(task_util_est(p), irq, max_cap); in eenv_task_busy_time()
/linux/lib/
H A Dregion_alloc_benchmark.c172 unsigned long i, max_cap = 0; in region_alloc_benchmark()
180 max_cap = max(max_cap, capacities[i]); in region_alloc_benchmark()
183 bitmap = kvmalloc_objs(*bitmap, BITS_TO_LONGS(max_cap)); in region_alloc_benchmark()
184 reg_sz = kvmalloc_array(max_cap + 1, sizeof(*reg_sz), GFP_KERNEL); in region_alloc_benchmark()
185 reg_idx = kvmalloc_objs(*reg_idx, max_cap); in region_alloc_benchmark()
168 unsigned long i, max_cap = 0; region_alloc_benchmark() local
/linux/drivers/cpufreq/
H A Dcppc_cpufreq.c443 unsigned int min_cap, max_cap; in get_perf_level_count()
449 max_cap = arch_scale_cpu_capacity(cpu);
450 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in compute_cost()
452 if ((min_cap == 0) || (max_cap < min_cap)) in compute_cost()
454 return 1 + max_cap / CPPC_EM_CAP_STEP - min_cap / CPPC_EM_CAP_STEP; in compute_cost()
473 unsigned int min_cap, max_cap; in cppc_get_cpu_power()
485 max_cap = arch_scale_cpu_capacity(cpu_dev->id); in cppc_get_cpu_power()
486 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in cppc_get_cpu_power()
489 max_cap); in cppc_get_cpu_power()
491 max_step = max_cap / CPPC_EM_CAP_STE in cppc_get_cpu_power()
432 unsigned int min_cap, max_cap; get_perf_level_count() local
462 unsigned int min_cap, max_cap; cppc_get_cpu_power() local
535 unsigned int max_cap; cppc_get_cpu_cost() local
[all...]
/linux/drivers/infiniband/hw/erdma/
H A Derdma_main.c411 dev->res_cb[ERDMA_RES_TYPE_PD].max_cap = ERDMA_MAX_PD; in erdma_dev_attrs_init()
412 dev->res_cb[ERDMA_RES_TYPE_STAG_IDX].max_cap = dev->attrs.max_mr; in erdma_dev_attrs_init()
413 dev->res_cb[ERDMA_RES_TYPE_AH].max_cap = dev->attrs.max_ah; in erdma_dev_attrs_init()
452 bitmap_zalloc(dev->res_cb[i].max_cap, GFP_KERNEL); in erdma_res_cb_init()
H A Derdma_verbs.c225 idx = find_next_zero_bit(res_cb->bitmap, res_cb->max_cap, in create_cq_cmd()
227 if (idx == res_cb->max_cap) { in create_cq_cmd()
228 idx = find_first_zero_bit(res_cb->bitmap, res_cb->max_cap); in create_cq_cmd()
229 if (idx == res_cb->max_cap) { in create_cq_cmd()
/linux/arch/x86/kernel/cpu/
H A Daperfmperf.c415 void arch_set_cpu_capacity(int cpu, unsigned long cap, unsigned long max_cap, in arch_set_cpu_capacity() argument
420 div_u64(cap << SCHED_CAPACITY_SHIFT, max_cap)); in arch_set_cpu_capacity()
/linux/kernel/power/
H A Denergy_model.c231 u64 fmax, max_cap; in em_init_performance()
246 max_cap = (u64) arch_scale_cpu_capacity(cpu); in em_init_performance()
248 table[i].performance = div64_u64(max_cap * table[i].frequency, in em_init_performance()
232 u64 fmax, max_cap; em_init_performance() local