commit | fa8c795867b284239eb88970889a145cfa026f78 | [log] [tgz] |
---|---|---|
author | Sharvil Nanavati <sharvil@google.com> | Sat Jun 13 02:12:08 2015 -0700 |
committer | Andre Eisenbach <eisenbach@google.com> | Tue Jun 16 15:33:26 2015 +0000 |
tree | be9b4b848480f6cd8319f00574d49465c1e70a5e | |
parent | 6efc8233c745717562aa6d21bb395494d5d10a01 [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