aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_powersave.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-02-03 15:52:28 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-02-03 15:52:28 -0600
commit73aecd73abdb8cf12cd12b5e5eb2d7eb0d60fa81 (patch)
treee04faaafc50e735fd71397f061b5fbb0ad0617c8 /src/bin/e_powersave.c
parentSysinfo - Netstatus gadget - Fix netstatus calculation. (diff)
downloadenlightenment-73aecd73abdb8cf12cd12b5e5eb2d7eb0d60fa81.tar.gz
Replace all timer_add with timer_loop_add
So yeah, I've literally used sed to replace every occurrence of ecore_time_add() with ecore_timer_loop_add() because I'm reasonably confident that no part of E has a legitimate need for timer based on the exact current time. It would be really nice if I'm not wrong. :) The reason for this is the incredible spew of clock_gettime() calls I'm seeing on an ARM system (that should have a vdso for gettime, but...) This can amount to thousands of system calls per second. #YOLO
Diffstat (limited to 'src/bin/e_powersave.c')
-rw-r--r--src/bin/e_powersave.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/e_powersave.c b/src/bin/e_powersave.c
index 645a97994..be622b577 100644
--- a/src/bin/e_powersave.c
+++ b/src/bin/e_powersave.c
@@ -45,7 +45,7 @@ e_powersave_deferred_action_add(void (*func)(void *data), const void *data)
pa = calloc(1, sizeof(E_Powersave_Deferred_Action));
if (!pa) return NULL;
if (deferred_timer) ecore_timer_del(deferred_timer);
- deferred_timer = ecore_timer_add(defer_time,
+ deferred_timer = ecore_timer_loop_add(defer_time,
_e_powersave_cb_deferred_timer,
NULL);
pa->func = func;
@@ -165,7 +165,7 @@ _e_powersave_mode_eval(void)
if (!EINA_DBL_EQ(t, defer_time))
{
if (deferred_timer) ecore_timer_del(deferred_timer);
- deferred_timer = ecore_timer_add(defer_time,
+ deferred_timer = ecore_timer_loop_add(defer_time,
_e_powersave_cb_deferred_timer,
NULL);
defer_time = t;