diff options
author | Mikael Olsson <mikael.olsson@arm.com> | 2023-08-23 11:02:20 +0200 |
---|---|---|
committer | Mikael Olsson <mikael.olsson@arm.com> | 2023-09-07 10:42:34 +0200 |
commit | 18257600f30afb78f4f82cd921073cef98f5ce81 (patch) | |
tree | 5461227e18d6f4cf413b41939ea097d561ef5c42 /.clang-format | |
parent | 27fe8e06f3ceb6bcd606daeca5fb572c1ccdb9e7 (diff) | |
download | ethos-u-linux-driver-stack-18257600f30afb78f4f82cd921073cef98f5ce81.tar.gz |
Reduce mutex scope for NPU device IOCTL calls
Instead of locking the device mutex for all IOCTL calls to the NPU
device, the mutex will now only be locked for the calls that have
resources that must be protected from concurrent access. IOCTL calls
that only copy static data do not need to lock the mutex.
The same device mutex is used for all concurrent access protection in
the driver, including the mailbox handling, so removing unnecessary
locking decreases the need to wait for the mutex.
Change-Id: Ic606fe0e1db4aa2e3d4e579ada74418491546468
Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions