diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2024-06-23 15:09:18 -0500 |
---|---|---|
committer | Mario Limonciello <mario.limonciello@amd.com> | 2024-06-24 13:17:56 -0500 |
commit | bc76f57574741cc8e7d04c53f199d8722ce09413 (patch) | |
tree | 3cd4f901b127f53795acb5791487c5a652651211 /scripts/gdb/linux/utils.py | |
parent | e1a921f7fcd157ca898e453bbb56927ab39412e3 (diff) |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions