From: Jacob Pan Date: Thu, 16 Jun 2016 16:48:22 +0000 (-0700) Subject: tools/power/turbostat: Add Denverton RAPL support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f64490978ef9ed4debe33bf0dbf25e80659f7f7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tools/power/turbostat: Add Denverton RAPL support The Denverton CPU RAPL supports package, core, and DRAM domains. Signed-off-by: Jacob Pan Signed-off-by: Len Brown --- diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 16ccada7e439..70a6699c528c 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -2663,6 +2663,9 @@ void rapl_probe(unsigned int family, unsigned int model) case 0x4D: /* AVN */ do_rapl = RAPL_PKG | RAPL_CORES; break; + case 0x5f: /* DNV */ + do_rapl = RAPL_PKG | RAPL_DRAM | RAPL_DRAM_POWER_INFO | RAPL_DRAM_PERF_STATUS | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO | RAPL_CORES_ENERGY_STATUS; + break; default: return; }