diff options
author | Swapnil Sapkal <swapnil.sapkal@amd.com> | 2025-04-30 17:14:33 +0000 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2025-05-09 12:43:31 -0600 |
commit | 8ffe772076bbb6828e28705bda93ac37c8d7294c (patch) | |
tree | dc3157d9e2f9138303fe26089598be879b7d20ee /scripts/generate_rust_analyzer.py | |
parent | ab4b00407dd864853516aba3cd7caed2b7c33ffd (diff) |
selftests/cpufreq: Fix cpufreq basic read and update testcases
In cpufreq basic selftests, one of the testcases is to read all cpufreq
sysfs files and print the values. This testcase assumes all the cpufreq
sysfs files have read permissions. However certain cpufreq sysfs files
(eg. stats/reset) are write only files and this testcase errors out
when it is not able to read the file.
Similarily, there is one more testcase which reads the cpufreq sysfs
file data and write it back to same file. This testcase also errors out
for sysfs files without read permission.
Fix these testcases by adding proper read permission checks.
Link: https://lore.kernel.org/r/20250430171433.10866-1-swapnil.sapkal@amd.com
Reported-by: Narasimhan V <narasimhan.v@amd.com>
Signed-off-by: Swapnil Sapkal <swapnil.sapkal@amd.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions