android: binder: Use wake up hint for synchronous transactions.
authorRiley Andrews <riandrews@google.com>
Wed, 21 Oct 2015 23:30:25 +0000 (16:30 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:12:56 +0000 (18:12 +0200)
commitd999e7058bcb8c932a9bfc2f00c5a462d1179737
treef131be03f18c5ce598d5497d48f882fff9a1be76
parent3b090f5e4b334629cd5a3052290412b5358c26e6
android: binder: Use wake up hint for synchronous transactions.

(cherry pick from 572b57fc6f7fb6ffaa979d505ec2b0a9e9840cca)

Use wake_up_interruptible_sync() to hint to the scheduler binder
transactions are synchronous wakeups. Disable preemption while waking
to avoid ping-ponging on the binder lock.

Signed-off-by: Riley Andrews <riandrews@google.com>
Bug: 30141999
Change-Id: If570d94ef3fed09c328052922d5a9e83d7ba479a
drivers/android/binder.c