Use sysfs file to get average power instead of debugfs

Tá an tiomantas seo le fáil i:
Chris Freehill
2018-10-29 17:59:24 -05:00
tuismitheoir 767fa53d8c
tiomantas 62ba2f578e
D'athraigh 8 comhad le 12 breiseanna agus 19 scriosta
+2 -2
Féach ar an gComhad
@@ -446,7 +446,7 @@ rsmi_status_t rsmi_dev_gpu_clk_freq_set(uint32_t dv_ind,
* @param[in] dv_ind a device index
*
* @param[inout] name a pointer to a caller provided char buffer to which the
* speed will be written
* name will be written
*
* @param[in] len the length of the caller provided buffer @p name.
*
@@ -588,7 +588,7 @@ rsmi_status_t rsmi_dev_fan_speed_set(uint32_t dv_ind, uint32_t sensor_ind,
*
* @details Given a device index @p dv_ind and a pointer to a uint64_t
* @p power, this function will write the current average power consumption to
* the uint64_t in milliwatts pointed to by @p power. This function requires
* the uint64_t in microwatts pointed to by @p power. This function requires
* root privilege.
*
* @param[in] dv_ind a device index
+1
Féach ar an gComhad
@@ -63,6 +63,7 @@ enum MonitorTypes {
kMonPowerCap,
kMonPowerCapMax,
kMonPowerCapMin,
kMonPowerAve,
kMonTempMax,
kMonTempMin,
kMonTempMaxHyst,
-1
Féach ar an gComhad
@@ -55,7 +55,6 @@ namespace smi {
enum PowerMonTypes {
kPowerMaxGPUPower,
kPowerAveGPUPower,
};