linux-cpupower-4.15-rc1

This cpupower update consists of fixes to the MHz frequency output and
 adding 64-bit library detection.
 -----BEGIN PGP SIGNATURE-----
 
 iQIcBAABCAAGBQJaBKFRAAoJEAsCRMQNDUMc7L4P/RrxJ2ZtKpgz1hqtOqaWokuL
 dK5ZePn5wka9PheEht/PTVK0OjHagcL5DRJed0YuxAecxe4Fxpu4LycNJ4M8saF/
 98rFNF4Po4QUjrUSZJQVmaFh9yDaXfWvPccV66KYyWStrU7r1v3wMB7k004nEvo4
 RGcFgfh97m7ubeyfwwpEWCGcpj8JaMu6JBLUsDpEMVVwkU+VHCFU1+Vt5T5PM47w
 Hi2Xrg70t/4diMiRP3s7qvw2FDyH3qM0WSx7/qtrk3EcHLZBXYgXwml53+M2s7Tt
 O+gdvgvwWiolaKqTIpIadVUDW9MPipRlltQNXNDUf3X+r9z0cXBK+FYztnisO79V
 KGC1gwCB7VMmh+D6bk0OEoa4a6vnFD2IgWQWfVg5QGChCxneNzeUjmqSUF8Dt2HK
 3j471/YiY7OjXISH2g7Ov3mNNg4RWsH+h/dvQGmo5eVPLqg1M0dKxr8nlQ9dPOka
 dia4ksOoJqD5KJr0p46oz/O0b29rMYzTWO4QSOL5Zomg2GoQhXFuOnGiSQKZ0XT8
 f5CesFcFwXoIp5EAqvmHI52DgPPZyEvCn3uFYRYs5Pp8dY3P7CtBRihCaQGjifuc
 FrCiIrWzOa7RlH5P44kju2zk3jubbBj2Z/oWpBFuEBKQRTR2m37bOfMlaEulPPvB
 v6iuN96xJyYOrJEe+kSA
 =8I23
 -----END PGP SIGNATURE-----

Merge tag 'linux-cpupower-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux into pm-tools

Pull cpupower utility changes for v4.15 from Shuah Khan.

This cpupower update consists of fixes to the MHz frequency output and
adding 64-bit library detection.

* tag 'linux-cpupower-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux:
  tools/power/cpupower: add libcpupower.so.0.0.1 to .gitignore
  tools/power/cpupower: Add 64 bit library detection
  cpupower: Fix no-rounding MHz frequency output
This commit is contained in:
Rafael J. Wysocki 2017-11-09 23:33:43 +01:00
commit be89251d63
3 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,6 @@
.libs
libcpupower.so
libcpupower.so.0
libcpupower.so.0.0.0
libcpupower.so.*
build/ccdv
cpufreq-info
cpufreq-set

View File

@ -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/

View File

@ -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));