diff --git a/cpupower_rapl.patch b/cpupower_rapl.patch index 408a943..29b7e4f 100644 --- a/cpupower_rapl.patch +++ b/cpupower_rapl.patch @@ -28,7 +28,7 @@ Signed-off-by: Thomas Renninger Index: cpupower-5.1/Makefile =================================================================== --- cpupower-5.1.orig/Makefile 2019-05-06 02:42:58.000000000 +0200 -+++ cpupower-5.1/Makefile 2019-07-17 18:05:02.455869697 +0200 ++++ cpupower-5.1/Makefile 2019-07-18 12:14:08.787390727 +0200 @@ -143,7 +143,7 @@ UTIL_OBJS = utils/helpers/amd.o utils/h utils/idle_monitor/mperf_monitor.o utils/idle_monitor/cpupower-monitor.o \ utils/cpupower.o utils/cpufreq-info.o utils/cpufreq-set.o \ @@ -78,7 +78,7 @@ Index: cpupower-5.1/Makefile Index: cpupower-5.1/lib/powercap.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ cpupower-5.1/lib/powercap.c 2019-07-17 18:05:02.455869697 +0200 ++++ cpupower-5.1/lib/powercap.c 2019-07-18 12:14:08.787390727 +0200 @@ -0,0 +1,290 @@ +/* + * (C) 2016 Thomas Renninger @@ -373,7 +373,7 @@ Index: cpupower-5.1/lib/powercap.c Index: cpupower-5.1/lib/powercap.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ cpupower-5.1/lib/powercap.h 2019-07-17 18:05:02.455869697 +0200 ++++ cpupower-5.1/lib/powercap.h 2019-07-18 12:14:08.787390727 +0200 @@ -0,0 +1,54 @@ +/* + * (C) 2016 Thomas Renninger @@ -432,7 +432,7 @@ Index: cpupower-5.1/lib/powercap.h Index: cpupower-5.1/utils/builtin.h =================================================================== --- cpupower-5.1.orig/utils/builtin.h 2019-05-06 02:42:58.000000000 +0200 -+++ cpupower-5.1/utils/builtin.h 2019-07-17 18:05:02.455869697 +0200 ++++ cpupower-5.1/utils/builtin.h 2019-07-18 12:14:08.787390727 +0200 @@ -8,6 +8,8 @@ extern int cmd_freq_set(int argc, const extern int cmd_freq_info(int argc, const char **argv); extern int cmd_idle_set(int argc, const char **argv); @@ -445,7 +445,7 @@ Index: cpupower-5.1/utils/builtin.h Index: cpupower-5.1/utils/cpupower.c =================================================================== --- cpupower-5.1.orig/utils/cpupower.c 2019-05-06 02:42:58.000000000 +0200 -+++ cpupower-5.1/utils/cpupower.c 2019-07-17 18:05:02.455869697 +0200 ++++ cpupower-5.1/utils/cpupower.c 2019-07-18 12:14:08.787390727 +0200 @@ -53,6 +53,7 @@ static struct cmd_struct commands[] = { { "frequency-set", cmd_freq_set, 1 }, { "idle-info", cmd_idle_info, 0 }, @@ -457,7 +457,7 @@ Index: cpupower-5.1/utils/cpupower.c Index: cpupower-5.1/utils/powercap-info.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ cpupower-5.1/utils/powercap-info.c 2019-07-17 18:05:02.455869697 +0200 ++++ cpupower-5.1/utils/powercap-info.c 2019-07-18 12:14:08.787390727 +0200 @@ -0,0 +1,113 @@ +#include +#include @@ -572,23 +572,10 @@ Index: cpupower-5.1/utils/powercap-info.c + powercap_show(); + return 0; +} -Index: cpupower-5.1/utils/helpers/sysfs.c -=================================================================== ---- cpupower-5.1.orig/utils/helpers/sysfs.c 2019-05-06 02:42:58.000000000 +0200 -+++ cpupower-5.1/utils/helpers/sysfs.c 2019-07-17 18:06:13.311873515 +0200 -@@ -18,7 +18,7 @@ - - unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen) - { -- int fd; -+ int fd, i; - ssize_t numread; - - fd = open(path, O_RDONLY); Index: cpupower-5.1/man/cpupower-powercap-info.1 =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ cpupower-5.1/man/cpupower-powercap-info.1 2019-07-17 18:05:02.455869697 +0200 ++++ cpupower-5.1/man/cpupower-powercap-info.1 2019-07-18 12:14:08.787390727 +0200 @@ -0,0 +1,25 @@ +.TH CPUPOWER\-POWERCAP\-INFO "1" "05/08/2016" "" "cpupower Manual" +.SH NAME