diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-19 10:21:56 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-19 10:31:20 +0900 |
commit | e7eaef62f347aea58714b677bb41f0a9468e7819 (patch) | |
tree | 6d0b09bcf331a804e28e16ae92f6cc5fb7156b9d /src/modules/sysinfo/thermal/thermal.c | |
parent | 4077b3ce591069dc4f9fe239aa1a9128173d3c56 (diff) | |
download | enlightenment-e7eaef62f347aea58714b677bb41f0a9468e7819.tar.gz |
powersave usage - dont use usleep at all. pwoersave sleep replaces it
also... there isn't realy a need to track the screensaver state...
powersave sleep will drop back to an hour between sleeps if we're in
freeze mode (it could be longer or even be indefinite). it will be
woken up if powersave state changes...
Diffstat (limited to 'src/modules/sysinfo/thermal/thermal.c')
-rw-r--r-- | src/modules/sysinfo/thermal/thermal.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/modules/sysinfo/thermal/thermal.c b/src/modules/sysinfo/thermal/thermal.c index d0744754f9..e30c047a03 100644 --- a/src/modules/sysinfo/thermal/thermal.c +++ b/src/modules/sysinfo/thermal/thermal.c @@ -98,10 +98,6 @@ _thermal_check_sysctl(void *data, Ecore_Thread *th) if (ptemp != temp) ecore_thread_feedback(th, (void *)((long)temp)); ptemp = temp; e_powersave_sleeper_sleep(tth->sleeper, tth->poll_interval); - if (e_powersave_mode_get() == E_POWERSAVE_MODE_FREEZE) - usleep((1000000.0 / 800.0) * (double)tth->poll_interval); - else - usleep((1000000.0 / 8.0) * (double)tth->poll_interval); if (ecore_thread_check(th)) break; } } @@ -120,10 +116,6 @@ _thermal_check_fallback(void *data, Ecore_Thread *th) if (ptemp != temp) ecore_thread_feedback(th, (void *)((long)temp)); ptemp = temp; e_powersave_sleeper_sleep(tth->sleeper, tth->poll_interval); - if (e_powersave_mode_get() == E_POWERSAVE_MODE_FREEZE) - usleep((1000000.0 / 800.0) * (double)tth->poll_interval); - else - usleep((1000000.0 / 8.0) * (double)tth->poll_interval); if (ecore_thread_check(th)) break; } } |