summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2026-05-06 10:00:00 -0400
committerLen Brown <len.brown@intel.com>2026-10-03 14:53:40 -0400
commited96bc22cbd454ce687d9685a21d159fe5689b83 (patch)
tree432af95f86ca0ff995d355fc6db01b8d4b91084c /tools/perf/scripts/python/bin
parent80960aeed32617adc6e74c100870e8d889201926 (diff)
downloadlinux-next-ed96bc22cbd454ce687d9685a21d159fe5689b83.tar.gz
linux-next-ed96bc22cbd454ce687d9685a21d159fe5689b83.zip
x86_energy_perf_policy: Constify HWP strings
Add const qualifiers to the string parameters of parse_optarg_string(), print_hwp_request(), and print_hwp_request_pkg() which are read-only. These functions never modify the string argument they receive. Adding const: 1. Documents the API contract clearly 2. Allows callers to pass string literals without compiler warnings 3. Enables the compiler to optimize better in some cases 4. Prevents accidental modification of the parameter Fixes: 4beec1d75196 ("tools/power x86_energy_perf_policy: support HWP.EPP") Assisted-by: GitHub-Copilot:Claude-Sonnet-4.6 Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions