Lines Matching refs:limits
156 static struct perf_limits limits = { variable
255 limits.turbo_disabled = in update_turbo_state()
270 min = PCT_TO_HWP(limits.min_perf_pct); in intel_pstate_hwp_set()
274 max = PCT_TO_HWP(limits.max_perf_pct); in intel_pstate_hwp_set()
275 if (limits.no_turbo) { in intel_pstate_hwp_set()
343 return sprintf(buf, "%u\n", limits.object); \
379 if (limits.turbo_disabled) in show_no_turbo()
380 ret = sprintf(buf, "%u\n", limits.turbo_disabled); in show_no_turbo()
382 ret = sprintf(buf, "%u\n", limits.no_turbo); in show_no_turbo()
398 if (limits.turbo_disabled) { in store_no_turbo()
403 limits.no_turbo = clamp_t(int, input, 0, 1); in store_no_turbo()
421 limits.max_sysfs_pct = clamp_t(int, input, 0 , 100); in store_max_perf_pct()
422 limits.max_perf_pct = min(limits.max_policy_pct, limits.max_sysfs_pct); in store_max_perf_pct()
423 limits.max_perf = div_fp(int_tofp(limits.max_perf_pct), int_tofp(100)); in store_max_perf_pct()
440 limits.min_sysfs_pct = clamp_t(int, input, 0 , 100); in store_min_perf_pct()
441 limits.min_perf_pct = max(limits.min_policy_pct, limits.min_sysfs_pct); in store_min_perf_pct()
442 limits.min_perf = div_fp(int_tofp(limits.min_perf_pct), int_tofp(100)); in store_min_perf_pct()
523 if (limits.no_turbo && !limits.turbo_disabled) in byt_set_pstate()
612 if (limits.no_turbo && !limits.turbo_disabled) in core_set_pstate()
692 if (limits.no_turbo || limits.turbo_disabled) in intel_pstate_get_min_max()
700 max_perf_adj = fp_toint(mul_fp(int_tofp(max_perf), limits.max_perf)); in intel_pstate_get_min_max()
704 min_perf = fp_toint(mul_fp(int_tofp(max_perf), limits.min_perf)); in intel_pstate_get_min_max()
968 limits.min_policy_pct = 100; in intel_pstate_set_policy()
969 limits.min_perf_pct = 100; in intel_pstate_set_policy()
970 limits.min_perf = int_tofp(1); in intel_pstate_set_policy()
971 limits.max_policy_pct = 100; in intel_pstate_set_policy()
972 limits.max_perf_pct = 100; in intel_pstate_set_policy()
973 limits.max_perf = int_tofp(1); in intel_pstate_set_policy()
974 limits.no_turbo = 0; in intel_pstate_set_policy()
978 limits.min_policy_pct = (policy->min * 100) / policy->cpuinfo.max_freq; in intel_pstate_set_policy()
979 limits.min_policy_pct = clamp_t(int, limits.min_policy_pct, 0 , 100); in intel_pstate_set_policy()
980 limits.min_perf_pct = max(limits.min_policy_pct, limits.min_sysfs_pct); in intel_pstate_set_policy()
981 limits.min_perf = div_fp(int_tofp(limits.min_perf_pct), int_tofp(100)); in intel_pstate_set_policy()
983 limits.max_policy_pct = (policy->max * 100) / policy->cpuinfo.max_freq; in intel_pstate_set_policy()
984 limits.max_policy_pct = clamp_t(int, limits.max_policy_pct, 0 , 100); in intel_pstate_set_policy()
985 limits.max_perf_pct = min(limits.max_policy_pct, limits.max_sysfs_pct); in intel_pstate_set_policy()
986 limits.max_perf = div_fp(int_tofp(limits.max_perf_pct), int_tofp(100)); in intel_pstate_set_policy()
1030 if (limits.min_perf_pct == 100 && limits.max_perf_pct == 100) in intel_pstate_cpu_init()
1041 policy->cpuinfo.max_freq = limits.turbo_disabled ? in intel_pstate_cpu_init()