Commit 95856760 authored by Jens Wiklander's avatar Jens Wiklander

tee: optee: remove need_resched() before cond_resched()

Testing need_resched() before cond_resched() is not needed as an
equivalent test is done internally in cond_resched(). So drop the
need_resched() test.

Fixes: dcb3b06d ("tee: optee: replace might_sleep with cond_resched")
Reviewed-by: default avatarRouven Czerwinski <r.czerwinski@pengutronix.de>
Tested-by: default avatarRouven Czerwinski <r.czerwinski@pengutronix.de>
Tested-by: default avatarSumit Garg <sumit.garg@linaro.org>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent dcb3b06d
......@@ -149,7 +149,6 @@ u32 optee_do_call_with_arg(struct tee_context *ctx, phys_addr_t parg)
*/
optee_cq_wait_for_completion(&optee->call_queue, &w);
} else if (OPTEE_SMC_RETURN_IS_RPC(res.a0)) {
if (need_resched())
cond_resched();
param.a0 = res.a0;
param.a1 = res.a1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment