aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGayatri Kammela <gayatri.kammela@intel.com>2020-03-03 13:28:08 -0800
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-03-20 14:47:01 +0200
commit267fc714cab797574a3a9df2074f05c3cdeb2511 (patch)
tree12f82a012c4631130336e31c9e1e565a992c9c44 /tools/perf/scripts/python/export-to-postgresql.py
parent9945a2479893682bee8ae46e2ce5f180d4f6b1b2 (diff)
platform/x86: intel_pmc_core: Make pmc_core_lpm_display() generic for platforms that support sub-states
Currently pmc_core_lpm_display() uses an array of the struct pointers, i.e. tgl_lpm_maps for Tiger Lake directly to iterate through and to get the number of (live) status registers which is hard coded and can not be re-used for the future platforms that support sub-states. To maintain readability, make pmc_core_lpm_display() generic, so that it can be re-used for future platforms. Cc: Chen Zhou <chenzhou10@huawei.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: David E. Box <david.e.box@intel.com> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Gayatri Kammela <gayatri.kammela@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions