platform/x86: intel_pmc_core: Show LPM residency in microseconds
authorGayatri Kammela <gayatri.kammela@intel.com>
Sat, 17 Apr 2021 03:12:47 +0000 (20:12 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 19 Apr 2021 08:41:24 +0000 (10:41 +0200)
commit29c2dd88ac9ed5780a762e49585e65e99c90d5a8
treef5220d7a37fb464551745c25089c34c79a5a701e
parent005125bfd70eb5532d284cc6e23396e161eb679e
platform/x86: intel_pmc_core: Show LPM residency in microseconds

Modify the low power mode (LPM or sub-state) residency counters to display
in microseconds just like the slp_s0_residency counter. The granularity of
the counter is approximately 30.5us per tick. Double this value then divide
by two to maintain accuracy.

Signed-off-by: Gayatri Kammela <gayatri.kammela@intel.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Rajneesh Bhardwaj <irenic.rajneesh@gmail.com>
Link: https://lore.kernel.org/r/20210417031252.3020837-5-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_pmc_core.c
drivers/platform/x86/intel_pmc_core.h