MLK-21522: VPU Decoder: fix the api of tsm is not thread safe
authorming_qian <ming.qian@nxp.com>
Tue, 23 Apr 2019 07:42:07 +0000 (15:42 +0800)
committerming_qian <ming.qian@nxp.com>
Wed, 24 Apr 2019 02:58:01 +0000 (10:58 +0800)
commit1dbde955b09b30bc7e368f1a8bdc4dd17f3577ab
treecba6d8429faa026479d51b21505713f21a1a342e
parentac351a50510e7e8b667a3ec6029b3801c92067a2
MLK-21522: VPU Decoder: fix the api of tsm is not thread safe

the api of tsm is not thread safe.
but in driver context, it's multithread.
add a lock to protect the api

Signed-off-by: ming_qian <ming.qian@nxp.com>
drivers/mxc/vpu_malone/vpu_b0.c
drivers/mxc/vpu_malone/vpu_b0.h