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>
Tue, 12 Jan 2016 21:21:56 +0000 (13:21 -0800)
commit5707038e31da72e853730aa1d6c122dda10de686
treec94f55060da8869ad58c965cd5c920273074c07b
parent405ec1816fb9345791ad438e754118a1e55d98dd
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