forked from len0rd/rockbox
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
This commit is contained in:
parent
bb56bc4ba0
commit
0cf2cc1607
7 changed files with 174 additions and 56 deletions
|
|
@ -1714,6 +1714,7 @@ target/hosted/android/kernel-android.c
|
|||
target/hosted/android/pcm-android.c
|
||||
target/hosted/android/powermgmt-android.c
|
||||
target/hosted/android/system-android.c
|
||||
target/hosted/android/telephony-android.c
|
||||
#ifdef APPLICATION
|
||||
target/hosted/android/app/button-application.c
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue