diff options
author | Jacob Pan <jacob.jun.pan@linux.intel.com> | 2014-09-02 05:55:21 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-09-02 19:29:00 -0400 |
commit | fcdf1797e1f8f6605b194e620a333e6d47e07672 (patch) | |
tree | 5ef328e352ccca477cc171957106c860c65d12d1 /drivers/powercap | |
parent | 64c7569c065564a066bb44161f904b4afc9f3e3a (diff) |
powercap / RAPL: change domain detection message
Many CPUs do not support complete set of RAPL domains, as a
result this detection failed message is very misleading and
can be annoying.
[ 5.082632] intel_rapl: RAPL domain core detection failed
[ 5.088370] intel_rapl: RAPL domain uncore detection failed
So lower the warning message to info and only print out the RAPL
domains that are supported.
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/powercap')
-rw-r--r-- | drivers/powercap/intel_rapl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c index a362dcc20ec0..45e05b32f9b6 100644 --- a/drivers/powercap/intel_rapl.c +++ b/drivers/powercap/intel_rapl.c | |||
@@ -1167,11 +1167,10 @@ static int rapl_detect_domains(struct rapl_package *rp, int cpu) | |||
1167 | 1167 | ||
1168 | for (i = 0; i < RAPL_DOMAIN_MAX; i++) { | 1168 | for (i = 0; i < RAPL_DOMAIN_MAX; i++) { |
1169 | /* use physical package id to read counters */ | 1169 | /* use physical package id to read counters */ |
1170 | if (!rapl_check_domain(cpu, i)) | 1170 | if (!rapl_check_domain(cpu, i)) { |
1171 | rp->domain_map |= 1 << i; | 1171 | rp->domain_map |= 1 << i; |
1172 | else | 1172 | pr_info("Found RAPL domain %s\n", rapl_domain_names[i]); |
1173 | pr_warn("RAPL domain %s detection failed\n", | 1173 | } |
1174 | rapl_domain_names[i]); | ||
1175 | } | 1174 | } |
1176 | rp->nr_domains = bitmap_weight(&rp->domain_map, RAPL_DOMAIN_MAX); | 1175 | rp->nr_domains = bitmap_weight(&rp->domain_map, RAPL_DOMAIN_MAX); |
1177 | if (!rp->nr_domains) { | 1176 | if (!rp->nr_domains) { |