summaryrefslogtreecommitdiff
path: root/src/modules/sysinfo/thermal/thermal.c
diff options
context:
space:
mode:
authorStephen 'Okra' Houston <smhouston88@gmail.com>2017-09-11 13:24:54 -0500
committerStephen 'Okra' Houston <smhouston88@gmail.com>2017-09-11 13:24:54 -0500
commitf8e17b67e463850002c92e3ec9d16d557185bbbe (patch)
tree179861c75c2f8a03b8f2cd3c2a3bfb72e2e864db /src/modules/sysinfo/thermal/thermal.c
parent81fc3d68371351eb6e9da7d9471bf9fa81424883 (diff)
downloadenlightenment-f8e17b67e463850002c92e3ec9d16d557185bbbe.tar.gz
Sysinfo gadgets: Revert all uses of faulty e_powersave_sleeper.
Diffstat (limited to 'src/modules/sysinfo/thermal/thermal.c')
-rw-r--r--src/modules/sysinfo/thermal/thermal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/sysinfo/thermal/thermal.c b/src/modules/sysinfo/thermal/thermal.c
index f09d053224..b34da4a53e 100644
--- a/src/modules/sysinfo/thermal/thermal.c
+++ b/src/modules/sysinfo/thermal/thermal.c
@@ -14,7 +14,6 @@ _thermal_thread_free(Tempthread *tth)
EINA_LIST_FREE(tth->tempdevs, s)
eina_stringshare_del(s);
#endif
- e_powersave_sleeper_free(tth->sleeper);
E_FREE(tth->extn);
E_FREE(tth);
}
@@ -99,7 +98,7 @@ _thermal_check_sysctl(void *data, Ecore_Thread *th)
temp = thermal_sysctl_get(tth);
if (ptemp != temp) ecore_thread_feedback(th, (void *)((long)temp));
ptemp = temp;
- e_powersave_sleeper_sleep(tth->sleeper, tth->poll_interval);
+ usleep((1000000.0 / 8.0) * (double)thc->poll_interval);
if (ecore_thread_check(th)) break;
}
}
@@ -118,7 +117,7 @@ _thermal_check_fallback(void *data, Ecore_Thread *th)
temp = thermal_fallback_get(tth);
if (ptemp != temp) ecore_thread_feedback(th, (void *)((long)temp));
ptemp = temp;
- e_powersave_sleeper_sleep(tth->sleeper, tth->poll_interval);
+ usleep((1000000.0 / 8.0) * (double)thc->poll_interval);
if (ecore_thread_check(th)) break;
}
}
@@ -274,7 +273,6 @@ _thermal_config_updated(Instance *inst)
tth->poll_interval = inst->cfg->thermal.poll_interval;
tth->sensor_type = inst->cfg->thermal.sensor_type;
tth->inst = inst;
- tth->sleeper = e_powersave_sleeper_new();
if (inst->cfg->thermal.sensor_name)
tth->sensor_name = eina_stringshare_add(inst->cfg->thermal.sensor_name);