diff options
author | Darren Powell <[email protected]> | 2021-07-09 23:58:39 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-08-10 10:34:50 -0400 |
commit | e738c2f0e654832f9209a962c5020741aee30620 (patch) | |
tree | 33104798dc705af5827ca1d8b08c6441ecf4e568 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
parent | fe14c2859ffd18ecec263b0e24a5737478ae2529 (diff) |
amdgpu/pm: Replace smu12/13 usage of sprintf with sysfs_emit
initial modification of files
renoir_ppt.c
aldebaran_ppt.c
yellow_carp_ppt.c
=== Test ===
AMDGPU_PCI_ADDR=`lspci -nn | grep "VGA\|Display" | cut -d " " -f 1`
AMDGPU_HWMON=`ls -la /sys/class/hwmon | grep $AMDGPU_PCI_ADDR | awk '{print $9}'`
HWMON_DIR=/sys/class/hwmon/${AMDGPU_HWMON}
LOGFILE=pp_printf.test.log
lspci -nn | grep "VGA\|Display" > $LOGFILE
FILES="pp_dpm_sclk
pp_power_profile_mode "
for f in $FILES
do
echo === $f === >> $LOGFILE
cat $HWMON_DIR/device/$f >> $LOGFILE
done
cat $LOGFILE
Signed-off-by: Darren Powell <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions