mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-28 09:58:29 +01:00
e2a382a374
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
34 lines
1,017 B
Diff
34 lines
1,017 B
Diff
From 65b6297b572b3fc8969b53ca975fc530876ba5e0 Mon Sep 17 00:00:00 2001
|
||
From: Denis Gorodnichev <denis.gorodnichev@gmail.com>
|
||
Date: Sat, 19 Nov 2016 22:16:11 +0300
|
||
Subject: [PATCH] build with kernel 4.8
|
||
|
||
---
|
||
cpufreq/src/cpufreq-monitor-libcpufreq.c | 6 +++++-
|
||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||
|
||
diff --git a/cpufreq/src/cpufreq-monitor-libcpufreq.c b/cpufreq/src/cpufreq-monitor-libcpufreq.c
|
||
index 228a890..40e6294 100644
|
||
--- a/cpufreq/src/cpufreq-monitor-libcpufreq.c
|
||
+++ b/cpufreq/src/cpufreq-monitor-libcpufreq.c
|
||
@@ -19,6 +19,10 @@
|
||
* Authors : Carlos Garc<72>a Campos <carlosgc@gnome.org>
|
||
*/
|
||
|
||
+#ifdef HAVE_CONFIG_H
|
||
+#include "config.h"
|
||
+#endif
|
||
+
|
||
#include <glib.h>
|
||
#include <glib/gi18n.h>
|
||
|
||
@@ -111,7 +115,7 @@ cpufreq_monitor_libcpufreq_run (CPUFreqMonitor *monitor)
|
||
/* Check whether it failed because
|
||
* cpu is not online.
|
||
*/
|
||
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
|
||
+#ifdef HAVE_LIBCPUFREQ
|
||
if (!cpufreq_cpu_exists (cpu)) {
|
||
#else
|
||
if (cpupower_is_cpu_online (cpu)) {
|
||
|