diff options
author | Thomas Jarosch <tomj@simonv.com> | 2011-03-08 19:33:30 +0000 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2011-03-08 19:33:30 +0000 |
commit | 5c73e34d2d81545f59c5c664da3475251a5ac3c6 (patch) | |
tree | 3fc1be9423deaaa5e6e97c54fd4eaf0ec878cc33 /firmware/target | |
parent | 2ebe370ca1e4b5297cc1240b3b11e15ff168a184 (diff) | |
download | rockbox-5c73e34d2d81545f59c5c664da3475251a5ac3c6.tar.gz rockbox-5c73e34d2d81545f59c5c664da3475251a5ac3c6.zip |
Bring idle poweroff to RaaA and the sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29543 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/hosted/android/powermgmt-android.c | 4 | ||||
-rw-r--r-- | firmware/target/hosted/maemo/maemo-thread.c | 10 | ||||
-rw-r--r-- | firmware/target/hosted/powermgmt.c | 2 |
3 files changed, 1 insertions, 15 deletions
diff --git a/firmware/target/hosted/android/powermgmt-android.c b/firmware/target/hosted/android/powermgmt-android.c index e5e8344315..d23fece39a 100644 --- a/firmware/target/hosted/android/powermgmt-android.c +++ b/firmware/target/hosted/android/powermgmt-android.c | |||
@@ -58,10 +58,6 @@ int battery_time(void) | |||
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||
61 | /* could be useful to stop the service after some time of inactivity */ | ||
62 | void reset_poweroff_timer(void) {} | ||
63 | void set_poweroff_timeout(int timeout) { (void)timeout; }; | ||
64 | |||
65 | /* should always be safe on android targets, the host shuts us down before */ | 61 | /* should always be safe on android targets, the host shuts us down before */ |
66 | bool battery_level_safe(void) | 62 | bool battery_level_safe(void) |
67 | { | 63 | { |
diff --git a/firmware/target/hosted/maemo/maemo-thread.c b/firmware/target/hosted/maemo/maemo-thread.c index 8300c8f0b6..a32a563459 100644 --- a/firmware/target/hosted/maemo/maemo-thread.c +++ b/firmware/target/hosted/maemo/maemo-thread.c | |||
@@ -200,13 +200,3 @@ bool battery_level_safe(void) | |||
200 | { | 200 | { |
201 | return battery_level() >= 5; | 201 | return battery_level() >= 5; |
202 | } | 202 | } |
203 | |||
204 | /** Rockbox stubs */ | ||
205 | void set_poweroff_timeout(int timeout) | ||
206 | { | ||
207 | (void)timeout; | ||
208 | } | ||
209 | |||
210 | void reset_poweroff_timer(void) | ||
211 | { | ||
212 | } | ||
diff --git a/firmware/target/hosted/powermgmt.c b/firmware/target/hosted/powermgmt.c index d4103a0c00..bf05e5ff19 100644 --- a/firmware/target/hosted/powermgmt.c +++ b/firmware/target/hosted/powermgmt.c | |||
@@ -44,7 +44,7 @@ static void power_thread(void) | |||
44 | /* Sleep two seconds */ | 44 | /* Sleep two seconds */ |
45 | sleep(HZ*2); | 45 | sleep(HZ*2); |
46 | 46 | ||
47 | handle_sleep_timer(); | 47 | handle_auto_poweroff(); |
48 | } | 48 | } |
49 | } /* power_thread */ | 49 | } /* power_thread */ |
50 | 50 | ||