Revision 64897b20eed29cee2b998fb5ba362e65523dba3c authored by Rafael J. Wysocki on 21 March 2017, 21:19:07 UTC, committed by Rafael J. Wysocki on 21 March 2017, 21:19:07 UTC
The policy->cpuinfo.max_freq and policy->max updates in intel_cpufreq_turbo_update() are excessive as they are done for no good reason and may lead to problems in principle, so they should be dropped. However, after dropping them intel_cpufreq_turbo_update() becomes almost entirely pointless, because the check made by it is made again down the road in intel_pstate_prepare_request(). The only thing in it that still needs to be done is the call to update_turbo_state(), so drop intel_cpufreq_turbo_update() altogether and make its callers invoke update_turbo_state() directly instead of it. In addition to that, fix intel_cpufreq_verify_policy() so that it checks global.no_turbo in addition to global.turbo_disabled when updating policy->cpuinfo.max_freq to make it consistent with intel_pstate_verify_policy(). Fixes: 001c76f05b01 (cpufreq: intel_pstate: Generic governors support) Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 7de3255
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 6.5 KB |
README.rst | -rw-r--r-- | 1.9 KB |
bpf_helpers.h | -rw-r--r-- | 6.1 KB |
bpf_load.c | -rw-r--r-- | 12.8 KB |
bpf_load.h | -rw-r--r-- | 985 bytes |
cgroup_helpers.c | -rw-r--r-- | 4.4 KB |
cgroup_helpers.h | -rw-r--r-- | 436 bytes |
fds_example.c | -rw-r--r-- | 4.1 KB |
lathist_kern.c | -rw-r--r-- | 2.1 KB |
lathist_user.c | -rw-r--r-- | 2.0 KB |
libbpf.h | -rw-r--r-- | 4.6 KB |
lwt_len_hist.sh | -rw-r--r-- | 921 bytes |
lwt_len_hist_kern.c | -rw-r--r-- | 1.8 KB |
lwt_len_hist_user.c | -rw-r--r-- | 1.6 KB |
map_perf_test_kern.c | -rw-r--r-- | 3.8 KB |
map_perf_test_user.c | -rw-r--r-- | 5.0 KB |
offwaketime_kern.c | -rw-r--r-- | 3.5 KB |
offwaketime_user.c | -rw-r--r-- | 2.4 KB |
parse_ldabs.c | -rw-r--r-- | 1.2 KB |
parse_simple.c | -rw-r--r-- | 1.3 KB |
parse_varlen.c | -rw-r--r-- | 3.5 KB |
sampleip_kern.c | -rw-r--r-- | 924 bytes |
sampleip_user.c | -rw-r--r-- | 4.2 KB |
sock_example.c | -rw-r--r-- | 2.9 KB |
sock_example.h | -rw-r--r-- | 795 bytes |
sock_flags_kern.c | -rw-r--r-- | 986 bytes |
sockex1_kern.c | -rw-r--r-- | 648 bytes |
sockex1_user.c | -rw-r--r-- | 1017 bytes |
sockex2_kern.c | -rw-r--r-- | 4.7 KB |
sockex2_user.c | -rw-r--r-- | 1.1 KB |
sockex3_kern.c | -rw-r--r-- | 6.1 KB |
sockex3_user.c | -rw-r--r-- | 1.5 KB |
spintest_kern.c | -rw-r--r-- | 2.1 KB |
spintest_user.c | -rw-r--r-- | 1.0 KB |
tc_l2_redirect.sh | -rwxr-xr-x | 4.9 KB |
tc_l2_redirect_kern.c | -rw-r--r-- | 6.0 KB |
tc_l2_redirect_user.c | -rw-r--r-- | 1.5 KB |
tcbpf1_kern.c | -rw-r--r-- | 2.5 KB |
tcbpf2_kern.c | -rw-r--r-- | 8.1 KB |
test_cgrp2_array_pin.c | -rw-r--r-- | 2.2 KB |
test_cgrp2_attach.c | -rw-r--r-- | 4.6 KB |
test_cgrp2_attach2.c | -rw-r--r-- | 4.6 KB |
test_cgrp2_sock.c | -rw-r--r-- | 1.9 KB |
test_cgrp2_sock.sh | -rwxr-xr-x | 1.0 KB |
test_cgrp2_sock2.c | -rw-r--r-- | 1.3 KB |
test_cgrp2_sock2.sh | -rwxr-xr-x | 1.4 KB |
test_cgrp2_tc.sh | -rwxr-xr-x | 4.1 KB |
test_cgrp2_tc_kern.c | -rw-r--r-- | 1.8 KB |
test_cls_bpf.sh | -rwxr-xr-x | 880 bytes |
test_current_task_under_cgroup_kern.c | -rw-r--r-- | 1.1 KB |
test_current_task_under_cgroup_user.c | -rw-r--r-- | 1.7 KB |
test_ipip.sh | -rwxr-xr-x | 5.6 KB |
test_lru_dist.c | -rw-r--r-- | 12.1 KB |
test_lwt_bpf.c | -rw-r--r-- | 6.0 KB |
test_lwt_bpf.sh | -rw-r--r-- | 8.9 KB |
test_overhead_kprobe_kern.c | -rw-r--r-- | 1.0 KB |
test_overhead_tp_kern.c | -rw-r--r-- | 828 bytes |
test_overhead_user.c | -rw-r--r-- | 3.2 KB |
test_probe_write_user_kern.c | -rw-r--r-- | 1.6 KB |
test_probe_write_user_user.c | -rw-r--r-- | 2.4 KB |
test_tunnel_bpf.sh | -rwxr-xr-x | 4.2 KB |
trace_event_kern.c | -rw-r--r-- | 1.7 KB |
trace_event_user.c | -rw-r--r-- | 4.7 KB |
trace_output_kern.c | -rw-r--r-- | 609 bytes |
trace_output_user.c | -rw-r--r-- | 4.0 KB |
tracex1_kern.c | -rw-r--r-- | 1.4 KB |
tracex1_user.c | -rw-r--r-- | 403 bytes |
tracex2_kern.c | -rw-r--r-- | 2.3 KB |
tracex2_user.c | -rw-r--r-- | 3.1 KB |
tracex3_kern.c | -rw-r--r-- | 2.1 KB |
tracex3_user.c | -rw-r--r-- | 3.1 KB |
tracex4_kern.c | -rw-r--r-- | 1.2 KB |
tracex4_user.c | -rw-r--r-- | 1.4 KB |
tracex5_kern.c | -rw-r--r-- | 1.9 KB |
tracex5_user.c | -rw-r--r-- | 1.1 KB |
tracex6_kern.c | -rw-r--r-- | 611 bytes |
tracex6_user.c | -rw-r--r-- | 1.4 KB |
xdp1_kern.c | -rw-r--r-- | 2.1 KB |
xdp1_user.c | -rw-r--r-- | 1.7 KB |
xdp2_kern.c | -rw-r--r-- | 2.4 KB |
xdp_tx_iptunnel_common.h | -rw-r--r-- | 634 bytes |
xdp_tx_iptunnel_kern.c | -rw-r--r-- | 5.6 KB |
xdp_tx_iptunnel_user.c | -rw-r--r-- | 5.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...