platform/x86/intel/pmc: core: Report duration of time in HW sleep state
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 17 Apr 2023 15:27:08 +0000 (10:27 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 20 Apr 2023 17:06:12 +0000 (19:06 +0200)
commitddd66d63473513bb013928245b6482969b97de05
treeee5fe7ebba033f967a2c6e2861307aa66a8d7390
parente2348afe702e9431f428e230be7f4ef8a1778b19
platform/x86/intel/pmc: core: Report duration of time in HW sleep state

intel_pmc_core displays a warning when the module parameter
`warn_on_s0ix_failures` is set and a suspend didn't get to a HW sleep
state.

Report this to the standard kernel reporting infrastructure so that
userspace software can query after the suspend cycle is done.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/platform/x86/intel/pmc/core.c
drivers/platform/x86/intel/pmc/core.h