sec_ts driver used a mutex to serialize access to a flag indicating whether any
command is currently running. But some code path reading the status of
the flag were not protected which could potentially result in race. In
any case a mutex for a flag seem an over-kill. This CL got rid of this
mutex by converting the flag to an atomic variable.
Bug: 123027495
Change-Id: I4537241d5d10dc97dd764fe8324afb35c414668c
Signed-off-by: Biswajit Dash <bisdash@google.com>
- Modified sec_ts driver and added sec_cmd
- Modified Linux header files with changes from open source kernel
Bug: 69859019
Change-Id: Ibd8b53eadb5726720505dfdd4f25e290b8de3e97
Signed-off-by: Steve Pfetsch <spfetsch@google.com>