diff options
author | Darren Powell <darren.powell@amd.com> | 2021-07-10 00:24:43 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-08-10 10:34:55 -0400 |
commit | 21f0742af1ddb69e12b0b7f9d176a528846c4690 (patch) | |
tree | 3b5e30b622fa6c6d7348cabd41dc2cbf982bbe8d /drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |
parent | e738c2f0e654832f9209a962c5020741aee30620 (diff) | |
download | linux-21f0742af1ddb69e12b0b7f9d176a528846c4690.tar.gz linux-21f0742af1ddb69e12b0b7f9d176a528846c4690.tar.bz2 linux-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/amdgpu/amdgpu_i2c.c')
0 files changed, 0 insertions, 0 deletions