ANDROID: binder: Don't BUG_ON(!spin_is_locked()).
authorMartijn Coenen <maco@android.com>
Thu, 27 Jul 2017 21:52:24 +0000 (23:52 +0200)
committerMartijn Coenen <maco@google.com>
Fri, 28 Jul 2017 08:09:54 +0000 (08:09 +0000)
commited323354ecec56d4e0554d8fbaad7884d6efa7cf
tree6a89453c404edab94a6df8faba1c157ceaa27380
parent9ae2c670d8df85cc3b44cd02c063ddd1e1ffa14d
ANDROID: binder: Don't BUG_ON(!spin_is_locked()).

Because is_spin_locked() always returns false on UP
systems.

Use assert_spin_locked() instead, and remove the
WARN_ON() instances, since those were easy to verify.

Bug: 64073116
Change-Id: I9080991c6d67e91928282a3ee64db23e50c7d66a
Signed-off-by: Martijn Coenen <maco@android.com>
drivers/android/binder.c