firmware: arm_ffa: Avoid queuing work when running on the worker queue
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 24 Apr 2024 13:16:40 +0000 (14:16 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 25 Apr 2024 11:27:55 +0000 (12:27 +0100)
commit3a3e2b83e8059679e92be4273c601ea21e105a89
treec7b61f05be21bfc1695280be0f7191a0570f3b08
parentddfade88f49d49b04930ae006ab0974eb547529c
firmware: arm_ffa: Avoid queuing work when running on the worker queue

Currently notif_pcpu_irq_work_fn() may get queued from the work that is
already running on the 'notif_pcpu_wq' workqueue. This may add
unnecessary delays and could be avoided if the work is called directly
instead.

This change removes queuing of the work when already running on the
'notif_pcpu_wq' workqueue thereby removing any possible delays in that
path.

Link: https://lore.kernel.org/r/20240424131640.706870-1-sudeep.holla@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c