OSDN Git Service

DO NOT MERGE Use POSIX timer API for wake alarms instead of OSI callouts.
authorSharvil Nanavati <sharvil@google.com>
Mon, 7 Sep 2015 08:05:19 +0000 (01:05 -0700)
committerSharvil Nanavati <sharvil@google.com>
Sun, 13 Sep 2015 09:09:29 +0000 (02:09 -0700)
commitb8cc54d161df88ef4316ef050d8a74a724b8d454
tree7f0b6250307971b33cb50a49cafc2d8fa3dbd0bf
parent043257b2ab96b07ba24e97dc6031536f8edba075
DO NOT MERGE Use POSIX timer API for wake alarms instead of OSI callouts.

This change increases RFCOMM throughput by a little over 50%. We
were paying a pretty major cost in setting up / tearing down wake
timers by going through JNI and Binder over to AlarmService.

There are a few gotchas with this implementation, particularly
because the Linux kernel implementation of wake timers is somewhat
buggy.

Bug: 23375670
Change-Id: I27558f439e57696d912b968f56a48e5e4098860b
osi/src/alarm.c