From patchwork Thu Nov 9 20:10:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 10051757 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 66E8B601EA for ; Thu, 9 Nov 2017 20:10:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53B902B0FC for ; Thu, 9 Nov 2017 20:10:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48A902B10C; Thu, 9 Nov 2017 20:10:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 728452B0FC for ; Thu, 9 Nov 2017 20:10:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750968AbdKIUKh (ORCPT ); Thu, 9 Nov 2017 15:10:37 -0500 Received: from osg.samsung.com ([64.30.133.232]:60344 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750736AbdKIUKg (ORCPT ); Thu, 9 Nov 2017 15:10:36 -0500 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 1852432D6A; Thu, 9 Nov 2017 12:10:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IoNR1ZL4NTtF; Thu, 9 Nov 2017 12:10:34 -0800 (PST) Received: from [192.168.1.87] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) by osg.samsung.com (Postfix) with ESMTPSA id DD67332D5A; Thu, 9 Nov 2017 12:10:33 -0800 (PST) To: "Rafael J. Wysocki" Cc: Thomas Renninger , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Shuah Khan , Prarit Bhargava From: Shuah Khan Subject: [GIT PULL] cpupower update for 4.15-rc1 Message-ID: Date: Thu, 9 Nov 2017 13:10:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Rafael, Please pull the cpupower update for 4.15-rc1 This update consists of fixes to the MHz frequency output and adding 64-bit library detection. Diff is attached. These patches have been in linux-next for a few days. I had to fix commit lines longer than 75 chars in one of the commits and fixed this morning. Please let me know if you would like any changes in the work-flow and the pull request. thanks, -- Shuah -------------------------------------------------------------- The following changes since commit 0b07194bb55ed836c2cc7c22e866b87a14681984: Linux 4.14-rc7 (2017-10-29 13:58:38 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux tags/linux-cpupower-4.15-rc1 for you to fetch changes up to 69b6f8a9b7961efd7dcc11ab9b1d5be55ed8a15e: tools/power/cpupower: add libcpupower.so.0.0.1 to .gitignore (2017-11-09 10:52:22 -0700) ---------------------------------------------------------------- linux-cpupower-4.15-rc1 This cpupower update consists of fixes to the MHz frequency output and adding 64-bit library detection. ---------------------------------------------------------------- Prarit Bhargava (3): cpupower: Fix no-rounding MHz frequency output tools/power/cpupower: Add 64 bit library detection tools/power/cpupower: add libcpupower.so.0.0.1 to .gitignore tools/power/cpupower/.gitignore | 3 +-- tools/power/cpupower/Makefile | 6 ++++++ tools/power/cpupower/utils/cpufreq-info.c | 2 -- 3 files changed, 7 insertions(+), 4 deletions(-) -------------------------------------------------------------- diff --git a/tools/power/cpupower/.gitignore b/tools/power/cpupower/.gitignore index d42073f12609..1f9977cc609c 100644 --- a/tools/power/cpupower/.gitignore +++ b/tools/power/cpupower/.gitignore @@ -1,7 +1,6 @@ .libs libcpupower.so -libcpupower.so.0 -libcpupower.so.0.0.0 +libcpupower.so.* build/ccdv cpufreq-info cpufreq-set diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile index d6e1c02ddcfe..da205d1fa03c 100644 --- a/tools/power/cpupower/Makefile +++ b/tools/power/cpupower/Makefile @@ -30,6 +30,8 @@ OUTDIR := $(shell cd $(OUTPUT) && /bin/pwd) $(if $(OUTDIR),, $(error output directory "$(OUTPUT)" does not exist)) endif +include ../../scripts/Makefile.arch + # --- CONFIGURATION BEGIN --- # Set the following to `true' to make a unstripped, unoptimized @@ -79,7 +81,11 @@ bindir ?= /usr/bin sbindir ?= /usr/sbin mandir ?= /usr/man includedir ?= /usr/include +ifeq ($(IS_64_BIT), 1) +libdir ?= /usr/lib64 +else libdir ?= /usr/lib +endif localedir ?= /usr/share/locale docdir ?= /usr/share/doc/packages/cpupower confdir ?= /etc/ diff --git a/tools/power/cpupower/utils/cpufreq-info.c b/tools/power/cpupower/utils/cpufreq-info.c index 3e701f0e9c14..df43cd45d810 100644 --- a/tools/power/cpupower/utils/cpufreq-info.c +++ b/tools/power/cpupower/utils/cpufreq-info.c @@ -93,8 +93,6 @@ static void print_speed(unsigned long speed) if (speed > 1000000) printf("%u.%06u GHz", ((unsigned int) speed/1000000), ((unsigned int) speed%1000000)); - else if (speed > 100000) - printf("%u MHz", (unsigned int) speed); else if (speed > 1000) printf("%u.%03u MHz", ((unsigned int) speed/1000), (unsigned int) (speed%1000));