]> git.karo-electronics.de Git - karo-tx-linux.git/commit
platform/x86: intel_telemetry: Add debugfs entry for S0ix residency
authorRajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Fri, 23 Jun 2017 16:52:35 +0000 (22:22 +0530)
committerDarren Hart (VMware) <dvhart@infradead.org>
Wed, 5 Jul 2017 18:26:35 +0000 (11:26 -0700)
commitbc8c47abd486014aae543ecdea59554f098df9df
treeb6c9d0c74c04bb234fe792f8834e36f74900969d
parent7a3a51ab9467fb634dcfcd18eade61f418f540dd
platform/x86: intel_telemetry: Add debugfs entry for S0ix residency

This adds a debugfs consumer for the exported kernel API
intel_pmc_read_s0ix_residency. This debugfs entry reads S0ix residency
directly from the PMC hardware counters.

TEST:
- echo freeze > /sys/power/state
- Wake the system, read the S0ix residency i.e.
  cat /sys/kernel/debug/telemetry/s0ix_residency_usec

Signed-off-by: Shanth Murthy <shanth.murthy@intel.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_telemetry_debugfs.c