gallium/hud: fix power sensor readings for amdgpu users
authorAndre Heider <a.heider@gmail.com>
Sat, 27 Oct 2018 07:45:37 +0000 (09:45 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 30 Oct 2018 20:30:32 +0000 (16:30 -0400)
commit25a3ce97d5237659ceda50f54ac2623f974d8b7e
tree78bc17a158272a57c6eb0004d0a885bdf97d6296
parent5172eb231d9e9c632569426c7768d921e98d711f
gallium/hud: fix power sensor readings for amdgpu users

amdgpu doesn't use the INPUT but the AVERAGE subfeature:

$ sensors -u
amdgpu-pci-0100
Adapter: PCI adapter
power1:
  power1_average: 17.233
  power1_cap: 180.000

Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/hud/hud_sensors_temp.c