diff options
Diffstat (limited to 'firmware/target/hosted')
-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 | ||