| commit | 08a9e4b81752e2cdbeb6fe7d2e8ba092b03c667a | [log] [tgz] |
|---|---|---|
| author | Lei Ju <[email protected]> | Wed Jun 26 15:11:19 2024 -0700 |
| committer | Android Build Coastguard Worker <[email protected]> | Fri Jul 19 20:01:31 2024 +0000 |
| tree | 75ca748e465272b3404f7a8dec4be49ef9d0f1b6 | |
| parent | 38eca52a97a14740b237bdf9f0aee54413f69a71 [diff] |
HalClient: Update the deadlock fix flag to be PURPOSE_BUGFIX Bug: 347392749 Test: Tested with the clients using this library. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0b275dac676246567d02d6aad9748fa3d759d4e1) Merged-In: I874b0cc0c22217ae7c0b17bf0ef78c3b4737efe1 Change-Id: I874b0cc0c22217ae7c0b17bf0ef78c3b4737efe1
diff --git a/chre_flags.aconfig b/chre_flags.aconfig index 147fc51..78fe231 100644 --- a/chre_flags.aconfig +++ b/chre_flags.aconfig
@@ -58,6 +58,16 @@ } flag { + name: "bug_fix_reduce_lock_holding_period" + namespace: "context_hub" + description: "A flag guarding the fix of reducing lock holding period to avoid deadlock." + bug: "347392749" + metadata { + purpose: PURPOSE_BUGFIX + } +} + +flag { name: "reliable_message" is_exported: true namespace: "context_hub"
diff --git a/host/common/hal_client.cc b/host/common/hal_client.cc index de5a24d..9b4086e 100644 --- a/host/common/hal_client.cc +++ b/host/common/hal_client.cc
@@ -47,7 +47,7 @@ } bool HalClient::reduceLockHolding() { - return flags::reduce_lock_holding_period(); + return flags::bug_fix_reduce_lock_holding_period(); } std::unique_ptr<HalClient> HalClient::create(