diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2024-06-23 23:09:18 +0300 |
---|---|---|
committer | Mario Limonciello <mario.limonciello@amd.com> | 2024-06-24 21:17:56 +0300 |
commit | bc76f57574741cc8e7d04c53f199d8722ce09413 (patch) | |
tree | 3cd4f901b127f53795acb5791487c5a652651211 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | e1a921f7fcd157ca898e453bbb56927ab39412e3 (diff) | |
download | linux-bc76f57574741cc8e7d04c53f199d8722ce09413.tar.xz |
cpufreq: amd-pstate: Don't create attributes when registration fails
If driver registration fails then immediately return the failure
instead of continuing to register attributes.
This fixes issues of falling back from amd-pstate to other drivers
when cpufreq init has failed for any reason.
Reported-by: alex.s.cochran@proton.me
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Reviewed-by: Perry Yuan <Perry.Yuan@amd.com>
Link: https://lore.kernel.org/r/20240623200918.52104-1-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions