From patchwork Thu Mar 26 16:52:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Azhar Shaikh X-Patchwork-Id: 212481 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A2E4C43331 for ; Thu, 26 Mar 2020 16:51:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C7A720719 for ; Thu, 26 Mar 2020 16:51:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727766AbgCZQv4 (ORCPT ); Thu, 26 Mar 2020 12:51:56 -0400 Received: from mga09.intel.com ([134.134.136.24]:36661 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbgCZQvz (ORCPT ); Thu, 26 Mar 2020 12:51:55 -0400 IronPort-SDR: f4wiyenU79Im531BDqS3uvegVj7FNkuus8m6j49bVxrP8lMZIDEON9h/A8IrxGUkXz/r4E3tOG phDAO/gZ8CPw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2020 09:51:55 -0700 IronPort-SDR: +9+Bb3R6kKxkXPjTJ1SfzRi+zRENtHp947BkCeDhnuyrfA9qeKoOghjYjoD/giGbYZB0zarSMX tCWjmugrRbnQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,309,1580803200"; d="scan'208";a="265930241" Received: from otc-chromeosbuild-1.jf.intel.com ([10.54.30.83]) by orsmga002.jf.intel.com with ESMTP; 26 Mar 2020 09:51:54 -0700 From: Azhar Shaikh To: lenb@kernel.org, linux-pm@vger.kernel.org Cc: azhar.shaikh@intel.com Subject: [PATCH] turbostat: Update the field name for PkgC10 Date: Thu, 26 Mar 2020 09:52:01 -0700 Message-Id: <20200326165201.28588-1-azhar.shaikh@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The field name for PkgC10 currently is PkC10. Make it unifrom as other package C state field names. Signed-off-by: Azhar Shaikh --- tools/power/x86/turbostat/turbostat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 33b370865d16..67ffd2872c94 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -427,7 +427,7 @@ struct msr_counter bic[] = { { 0x0, "Pkg%pc7" }, { 0x0, "Pkg%pc8" }, { 0x0, "Pkg%pc9" }, - { 0x0, "Pk%pc10" }, + { 0x0, "Pkg%pc10" }, { 0x0, "CPU%LPI" }, { 0x0, "SYS%LPI" }, { 0x0, "PkgWatt" }, @@ -746,7 +746,7 @@ void print_header(char *delim) if (DO_BIC(BIC_Pkgpc9)) outp += sprintf(outp, "%sPkg%%pc9", (printed++ ? delim : "")); if (DO_BIC(BIC_Pkgpc10)) - outp += sprintf(outp, "%sPk%%pc10", (printed++ ? delim : "")); + outp += sprintf(outp, "%sPkg%%pc10", (printed++ ? delim : "")); if (DO_BIC(BIC_CPU_LPI)) outp += sprintf(outp, "%sCPU%%LPI", (printed++ ? delim : "")); if (DO_BIC(BIC_SYS_LPI))