diff options
author | 2021-07-10 00:24:43 -0400 | |
---|---|---|
committer | 2021-08-10 10:34:55 -0400 | |
commit | 21f0742af1ddb69e12b0b7f9d176a528846c4690 (patch) | |
tree | 3b5e30b622fa6c6d7348cabd41dc2cbf982bbe8d /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
parent | amdgpu/pm: Replace smu12/13 usage of sprintf with sysfs_emit (diff) | |
download | linux-dev-21f0742af1ddb69e12b0b7f9d176a528846c4690.tar.xz linux-dev-21f0742af1ddb69e12b0b7f9d176a528846c4690.zip |
amdgpu/pm: Replace vega10 usage of sprintf with sysfs_emit
initial modification of files
vega10_hwmgr.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_features
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 <darren.powell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions