aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLiao Chang <[email protected]>2023-09-12 06:10:57 +0000
committerRafael J. Wysocki <[email protected]>2023-10-06 22:01:26 +0200
commit9ef0ad49cc860c0860026c01abea68878c6d72f7 (patch)
tree9d12431d3cd6738ecfa220138d752055e51cb344 /tools/perf/util/trace-event-scripting.c
parent285189c57391360701af348cd57ca0ba8cbf7ff6 (diff)
cpufreq: userspace: Move is_managed indicator into per-policy structure
The userspace governor uses the 'cpu' field of cpufreq_policy structure to track if it is allowed to set the speed of the policy. However, there is a window where the 'cpu' field is equal to the value of nr_cpus_id when all affected CPUs of policy are offline, which is an illegal value to get the per-CPU variable. To avoid this issue, modify the governor to use a per-policy indicator to track if the policy is managed. Signed-off-by: Liao Chang <[email protected]> Acked-by: Viresh Kumar <[email protected]> [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions