summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-monitor-libcpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpufreq/src/cpufreq-monitor-libcpufreq.c')
-rw-r--r--cpufreq/src/cpufreq-monitor-libcpufreq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpufreq/src/cpufreq-monitor-libcpufreq.c b/cpufreq/src/cpufreq-monitor-libcpufreq.c
index 228a8909..ed99aa40 100644
--- a/cpufreq/src/cpufreq-monitor-libcpufreq.c
+++ b/cpufreq/src/cpufreq-monitor-libcpufreq.c
@@ -98,6 +98,10 @@ cpufreq_monitor_libcpufreq_new (guint cpu)
return CPUFREQ_MONITOR (monitor);
}
+#if LINUX_VERSION_CODE > KERNEL_VERSION(4, 7, 0)
+extern int cpupower_is_cpu_online (unsigned int cpu);
+#endif
+
static gboolean
cpufreq_monitor_libcpufreq_run (CPUFreqMonitor *monitor)
{