platform/x86: amd-pmc: Check s0i3 cycle status
authorSanket Goswami <Sanket.Goswami@amd.com>
Thu, 16 Sep 2021 12:41:30 +0000 (18:11 +0530)
committerHans de Goede <hdegoede@redhat.com>
Thu, 16 Sep 2021 13:26:36 +0000 (15:26 +0200)
commit9cfe02023cf67a36c2dfb05d1ea3eb79811a8720
tree2d4565d5de1d3322c1f7fcccce1b877aed5efbc3
parent7b6bf51de9746b43ec56567a0297378cd0172946
platform/x86: amd-pmc: Check s0i3 cycle status

As the PM firmware returns the status of the last s0i3 in the smu_metrics
structure, the existing name "s0i3_cyclecount" seems to be a misnomer.
Change it accordingly to "s0i3_last_entry_status".

Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20210916124130.2581-1-Sanket.Goswami@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c