diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-11-12 21:04:13 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-11-12 21:04:13 +0000 |
commit | 0cf2cc1607a0844e906042173815451cd9c2ff58 (patch) | |
tree | 77c555919d5c08f9a54f2b28cababe1d2d207f7e /firmware/SOURCES | |
parent | bb56bc4ba08bf6c6458a289ef4918dfaea30b238 (diff) | |
download | rockbox-0cf2cc1607a0844e906042173815451cd9c2ff58.tar.gz rockbox-0cf2cc1607a0844e906042173815451cd9c2ff58.zip |
Android: Change how detecting call state (introduced in r27746) works, from polling to event based.
* For some reason, the polling methid is much more inefficient than I thought. According to htop it caused up to 15% CPU load on some phones (e.g. Galaxy S).
The event based causes no CPU load.
Rockbox' idle CPU load is now back to 0%, while it was previously dominated by polling the call state.
* Also stop on outgoing calls (no need to explicitely pause for making a call anymore).
* Factor out the detection mechanism to separate files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28564 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/SOURCES')
-rw-r--r-- | firmware/SOURCES | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index c2df946394..29dc8644ee 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -1714,6 +1714,7 @@ target/hosted/android/kernel-android.c | |||
1714 | target/hosted/android/pcm-android.c | 1714 | target/hosted/android/pcm-android.c |
1715 | target/hosted/android/powermgmt-android.c | 1715 | target/hosted/android/powermgmt-android.c |
1716 | target/hosted/android/system-android.c | 1716 | target/hosted/android/system-android.c |
1717 | target/hosted/android/telephony-android.c | ||
1717 | #ifdef APPLICATION | 1718 | #ifdef APPLICATION |
1718 | target/hosted/android/app/button-application.c | 1719 | target/hosted/android/app/button-application.c |
1719 | #endif | 1720 | #endif |