summaryrefslogtreecommitdiff
path: root/src/modules/sysinfo/thermal/thermal.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-19 10:21:56 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-19 10:31:20 +0900
commite7eaef62f347aea58714b677bb41f0a9468e7819 (patch)
tree6d0b09bcf331a804e28e16ae92f6cc5fb7156b9d /src/modules/sysinfo/thermal/thermal.c
parent4077b3ce591069dc4f9fe239aa1a9128173d3c56 (diff)
downloadenlightenment-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.c8
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;
}
}