diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2021-06-15 22:23:53 +0200 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2021-11-17 14:08:56 +0100 |
commit | 787c80cc7b22804aa370f04a19f9fe0fa98b1e49 (patch) | |
tree | e833cd4cb6be34a1a9feb90a0ec33696ff9349c5 /drivers/tee/optee/Makefile | |
parent | 1e2c3ef0496e72ba9001da5fd1b7ed56ccb30597 (diff) | |
download | linux-787c80cc7b22804aa370f04a19f9fe0fa98b1e49.tar.bz2 |
optee: separate notification functions
Renames struct optee_wait_queue to struct optee_notif and all related
functions to optee_notif_*().
The implementation is changed to allow sending a notification from an
atomic state, that is from the top half of an interrupt handler.
Waiting for keys is currently only used when secure world is waiting for
a mutex or condition variable. The old implementation could handle any
32-bit key while this new implementation is restricted to only 8 bits or
the maximum value 255. A upper value is needed since a bitmap is
allocated to allow an interrupt handler to only set a bit in case the
waiter hasn't had the time yet to allocate and register a completion.
The keys are currently only representing secure world threads which
number usually are never even close to 255 so it should be safe for now.
In future ABI updates the maximum value of the key will be communicated
while the driver is initializing.
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/optee/Makefile')
-rw-r--r-- | drivers/tee/optee/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tee/optee/Makefile b/drivers/tee/optee/Makefile index 66b8a17f14c4..a6eff388d300 100644 --- a/drivers/tee/optee/Makefile +++ b/drivers/tee/optee/Makefile @@ -2,6 +2,7 @@ obj-$(CONFIG_OPTEE) += optee.o optee-objs += core.o optee-objs += call.o +optee-objs += notif.o optee-objs += rpc.o optee-objs += supp.o optee-objs += device.o |