Commit e1a27e87 authored by Jacob Pan's avatar Jacob Pan Committed by Rafael J. Wysocki

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: default avatarJacob Pan <jacob.jun.pan@linux.intel.com>
[ rjw: Subject & changelog ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 1a695a90
...@@ -1392,7 +1392,7 @@ static int rapl_detect_domains(struct rapl_package *rp, int cpu) ...@@ -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); rp->nr_domains = bitmap_weight(&rp->domain_map, RAPL_DOMAIN_MAX);
if (!rp->nr_domains) { 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; ret = -ENODEV;
goto done; goto done;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment