From patchwork Fri Aug 29 04:56:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Pan X-Patchwork-Id: 4810471 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 44F22C0338 for ; Fri, 29 Aug 2014 12:55:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F5E42011E for ; Fri, 29 Aug 2014 12:55:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F696200DB for ; Fri, 29 Aug 2014 12:55:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753158AbaH2Mzn (ORCPT ); Fri, 29 Aug 2014 08:55:43 -0400 Received: from mga09.intel.com ([134.134.136.24]:37587 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752860AbaH2Mzn (ORCPT ); Fri, 29 Aug 2014 08:55:43 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 29 Aug 2014 05:49:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,424,1406617200"; d="scan'208";a="565353884" Received: from jacob-desktop.jf.intel.com ([10.7.198.145]) by orsmga001.jf.intel.com with ESMTP; 29 Aug 2014 05:55:42 -0700 From: Jacob Pan To: Rafael Wysocki , Linux PM Cc: Srinivas Pandruvada , LKML , Jacob Pan Subject: [PATCH] powercap/rapl: lower warning level for domain detection Date: Thu, 28 Aug 2014 21:56:08 -0700 Message-Id: <1409288168-6537-1-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.0.0.5.gbce14aa Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DATE_IN_PAST_06_12, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Many CPUs do not support complete set of RAPL domains, as a result this detection failed message is very misleading and annoying. So lower the warning message to info and reword. Signed-off-by: Jacob Pan --- drivers/powercap/intel_rapl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c index b1cda6f..0b282e7 100644 --- a/drivers/powercap/intel_rapl.c +++ b/drivers/powercap/intel_rapl.c @@ -1169,7 +1169,7 @@ static int rapl_detect_domains(struct rapl_package *rp, int cpu) if (!rapl_check_domain(cpu, i)) rp->domain_map |= 1 << i; else - pr_warn("RAPL domain %s detection failed\n", + pr_info("RAPL domain %s not supported\n", rapl_domain_names[i]); } rp->nr_domains = bitmap_weight(&rp->domain_map, RAPL_DOMAIN_MAX);