commit | 08019f3e6a2430e0631f2524e577e497e420c04e | [log] [tgz] |
---|---|---|
author | Sharvil Nanavati <sharvil@google.com> | Sat Jun 13 02:12:08 2015 -0700 |
committer | Sharvil Nanavati <sharvil@google.com> | Mon Jun 15 15:45:38 2015 -0700 |
tree | 28797460e1f7ca6cba67899eda607274c934bcc8 | |
parent | d5137a4b82870b5384b748a1a70d26238d2883e0 [diff] |
Reduce CPU utilization from ~60% to ~10% on busy HCI reads. This patch improves RFCOMM throughput and reduces CPU utilization. Instead of using a counting semaphore to measure bytes and reading one at a time from the eager reader's buffer, read in bulk based on the incoming read request size. Change-Id: I17046bfbc3ca49576a9c82b38911aeb84234881a