]>
Commit | Line | Data |
---|---|---|
767212a3 AM |
1 | --- gnome-applets-3.18.2/cpufreq/src/cpufreq-monitor-libcpufreq.c~ 2016-02-05 18:35:32.000000000 +0100 |
2 | +++ gnome-applets-3.18.2/cpufreq/src/cpufreq-monitor-libcpufreq.c 2016-12-31 19:22:46.174263177 +0100 | |
3 | @@ -23,6 +23,7 @@ | |
4 | ||
5 | #include <stdlib.h> | |
6 | #include <cpufreq.h> | |
7 | +#include <cpuidle.h> | |
8 | ||
9 | #include "cpufreq-monitor-libcpufreq.h" | |
10 | #include "cpufreq-utils.h" | |
11 | @@ -110,7 +111,7 @@ cpufreq_monitor_libcpufreq_run (CPUFreqM | |
12 | /* Check whether it failed because | |
13 | * cpu is not online. | |
14 | */ | |
15 | - if (!cpufreq_cpu_exists (cpu)) { | |
16 | + if (cpupower_is_cpu_online (cpu)) { | |
17 | g_object_set (G_OBJECT (monitor), "online", FALSE, NULL); | |
18 | return TRUE; | |
19 | } |