Skip to content
Commit 9f0acf9f authored by Chris Smart's avatar Chris Smart Committed by Michael Ellerman
Browse files

powerpc/crypto: Add cond_resched() in crc-vpmsum self-test



The stress test for vpmsum implementations executes a long for loop in
the kernel. This blocks the scheduler, which prevents other tasks from
running, resulting in a warning.

This fix adds a call to cond_reshed() at the end of each loop, which
allows the scheduler to run other tasks as required.

Signed-off-by: default avatarChris Smart <chris.smart@humanservices.gov.au>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191103233356.5472-1-chris.smart@humanservices.gov.au
parent b1713975
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