We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e71ba94 commit dcb3b06Copy full SHA for dcb3b06
drivers/tee/optee/call.c
@@ -7,6 +7,7 @@
7
#include <linux/err.h>
8
#include <linux/errno.h>
9
#include <linux/mm.h>
10
+#include <linux/sched.h>
11
#include <linux/slab.h>
12
#include <linux/tee_drv.h>
13
#include <linux/types.h>
@@ -148,7 +149,8 @@ u32 optee_do_call_with_arg(struct tee_context *ctx, phys_addr_t parg)
148
149
*/
150
optee_cq_wait_for_completion(&optee->call_queue, &w);
151
} else if (OPTEE_SMC_RETURN_IS_RPC(res.a0)) {
- might_sleep();
152
+ if (need_resched())
153
+ cond_resched();
154
param.a0 = res.a0;
155
param.a1 = res.a1;
156
param.a2 = res.a2;
0 commit comments