diff options
Diffstat (limited to 'gnome-applets-cpupower.patch')
-rw-r--r-- | gnome-applets-cpupower.patch | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/gnome-applets-cpupower.patch b/gnome-applets-cpupower.patch index ec85059..3a51705 100644 --- a/gnome-applets-cpupower.patch +++ b/gnome-applets-cpupower.patch @@ -1,12 +1,21 @@ -diff -up gnome-applets-3.1.90/configure.ac.cpupower gnome-applets-3.1.90/configure.ac ---- gnome-applets-3.1.90/configure.ac.cpupower 2011-08-31 18:49:00.628945807 -0400 -+++ gnome-applets-3.1.90/configure.ac 2011-08-31 18:49:17.397946966 -0400 -@@ -518,7 +518,7 @@ AC_CHECK_HEADER(cpufreq.h, have_libcpufr - LIBCPUFREQ_LIBS= - if test "x$have_libcpufreq" = "xyes"; then - AC_DEFINE([HAVE_LIBCPUFREQ], [1], [Have libcpufreq.]) -- LIBCPUFREQ_LIBS=-lcpufreq -+ LIBCPUFREQ_LIBS=-lcpupower - fi - AM_CONDITIONAL(HAVE_LIBCPUFREQ, test x$have_libcpufreq = xyes) - AC_SUBST(LIBCPUFREQ_LIBS) +https://github.com/mate-desktop/mate-applets/issues/193 + +--- gnome-applets-3.20.0/cpufreq/src/cpufreq-monitor-libcpufreq.c 2016-03-10 16:53:48.000000000 -0600 ++++ gnome-applets-3.20.0/cpufreq/src/cpufreq-monitor-libcpufreq.c 2016-09-12 17:46:30.581654843 -0500 +@@ -23,6 +23,7 @@ + + #include <stdlib.h> + #include <cpufreq.h> ++#include <cpuidle.h> + + #include "cpufreq-monitor-libcpufreq.h" + #include "cpufreq-utils.h" +@@ -110,7 +111,7 @@ + /* Check whether it failed because + * cpu is not online. + */ +- if (!cpufreq_cpu_exists (cpu)) { ++ if (cpupower_is_cpu_online (cpu)) { + g_object_set (G_OBJECT (monitor), "online", FALSE, NULL); + return TRUE; + } |