]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/crypto: Add cond_resched() in crc-vpmsum self-test
authorChris Smart <chris.smart@humanservices.gov.au>
Sun, 3 Nov 2019 23:33:56 +0000 (23:33 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:02 +0000 (16:58 +1100)
commitc5fc5cbdc5419640174fcdbbcbcc9f7e613af725
treed94448e7ddb7d86fd55684ac49bb9de6cd1e89c3
parent6a71e924bf948214dc11f5bec9fea2b92409fe93
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: Chris Smart <chris.smart@humanservices.gov.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191103233356.5472-1-chris.smart@humanservices.gov.au
arch/powerpc/crypto/crc-vpmsum_test.c