OSDN Git Service

Offload config save functionality to BTIF thread
authorSrinu Jella <sjella@codeaurora.org>
Thu, 24 Dec 2015 12:10:52 +0000 (17:40 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 13 Jan 2016 22:43:08 +0000 (22:43 +0000)
commit32b3a8a408b23aa28324ad9f56654c98fe2ac914
treeb0eafe955ee7d673fd4f02a093ac83660049e0c7
parent4fc97325278c6ce3c78b14ec26f32b85a15e784e
Offload config save functionality to BTIF thread

Offload config save functionality to btif thread from
timer thread as timer callback thread is critical in
a2dp playback case.

If the timer callback thread is busy in config save due
to IO operations, it may lead to a2dp audio choppy.

Fix to avoid the "bt_config.conf" file corruption from
the file system. This will avoid losing the paired
information in some corner case, such as abrupt power
off and on. This patch will ensure bt_config is saved to
NVRAM.

Bug: 24875861
CRs-Fixed: 953993
Change-Id: I893e9afefa89cbab6e7ddd8835ca77d3e316874c
btif/src/btif_config.c