summaryrefslogtreecommitdiffstats
path: root/drivers/powercap
diff options
context:
space:
mode:
authorJacob Pan <jacob.jun.pan@linux.intel.com>2016-05-23 09:45:43 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-10 02:32:32 +0200
commite1a27e87a35cd6bb1087bd8f95a4be5a11e95f76 (patch)
tree60b121c2d4dd5b5e56af665d0db129cd2abd936a /drivers/powercap
parent1a695a905c18548062509178b98bc91e67510864 (diff)
downloadtalos-obmc-linux-e1a27e87a35cd6bb1087bd8f95a4be5a11e95f76.tar.gz
talos-obmc-linux-e1a27e87a35cd6bb1087bd8f95a4be5a11e95f76.zip
powercap / RAPL: reduce message loglevel
Since the RAPL interface is not architectual, its enumeration depends on poking MSRs instead of using the CPUID method. In KVM guests, the RAPL driver probe will fail and emit the following message for every CPU: "no valid rapl domains found in package" This patch converts the warning to a debug message only (still return -ENODEV so that RAPL does not run in KVM guests). Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> [ rjw: Subject & changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/powercap')
-rw-r--r--drivers/powercap/intel_rapl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c
index b2766b867b0e..91dfbe6433d6 100644
--- a/drivers/powercap/intel_rapl.c
+++ b/drivers/powercap/intel_rapl.c
@@ -1392,7 +1392,7 @@ static int rapl_detect_domains(struct rapl_package *rp, int cpu)
}
rp->nr_domains = bitmap_weight(&rp->domain_map, RAPL_DOMAIN_MAX);
if (!rp->nr_domains) {
- pr_err("no valid rapl domains found in package %d\n", rp->id);
+ pr_debug("no valid rapl domains found in package %d\n", rp->id);
ret = -ENODEV;
goto done;
}
OpenPOWER on IntegriCloud