summaryrefslogtreecommitdiffstats
path: root/arch/c6x/include/asm/pgtable.h
diff options
context:
space:
mode:
authorHarry Pan2019-06-19 10:28:01 +0200
committerAndy Shevchenko2019-07-03 14:44:42 +0200
commitc09c6071310df430619df57d67e7ab59902f99ad (patch)
tree48613d55f71fe163978a2bcf2712fdb99a9de0d5 /arch/c6x/include/asm/pgtable.h
parentplatform/x86: asus-wmi: Use dev_get_drvdata() (diff)
downloadkernel-qcow2-linux-c09c6071310df430619df57d67e7ab59902f99ad.tar.gz
kernel-qcow2-linux-c09c6071310df430619df57d67e7ab59902f99ad.tar.xz
kernel-qcow2-linux-c09c6071310df430619df57d67e7ab59902f99ad.zip
platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds
Refer to the Intel SDM Vol.4, the package C-state residency counters of modern IA micro-architecture are all ticking in TSC frequency, hence we can apply simple math to transform the ticks into microseconds. i.e., residency (ms) = count / tsc_khz residency (us) = count / tsc_khz * 1000 This also aligns to other sysfs debug entries of residency counter in the same metric in microseconds, benefits reading and scripting. v2: restore the accidentally deleted newline, no function change. v3: apply kernel do_div() macro to calculate division Signed-off-by: Harry Pan <harry.pan@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'arch/c6x/include/asm/pgtable.h')
0 files changed, 0 insertions, 0 deletions