Skip to content
Commit 698f744a authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: never copy_from_user inside spinlock



copy_from_user might sleep so we can never call it when we have
a spinlock.

Moreover, it is not necessary in waiting for user interrupt, because
if multiple threads will call this function on the same interrupt,
each one will have it's own fence object inside the driver. The
user address might be the same, but it doesn't really matter to us,
as we only read from it.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 053caa26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment