author: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-06 11:55:43 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-06 11:55:43 -0700
commit: 6d2b84a4e5b954bd2587e06c29577256f59e0030
parent: 4cec929370763c475111b1eb307df6759b6733e7
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c
index 3655d9d3f5df..198a8eb1cd56 100644
--- a/crypto/crypto_engine.c
+++ b/crypto/crypto_engine.c
@@ -482,7 +482,6 @@ struct crypto_engine *crypto_engine_alloc_init_and_set(struct device *dev,
int (*cbk_do_batch)(struct crypto_engine *engine),
bool rt, int qlen)
{
- struct sched_param param = { .sched_priority = MAX_RT_PRIO / 2 };
struct crypto_engine *engine;
if (!dev)
@@ -520,7 +519,7 @@ struct crypto_engine *crypto_engine_alloc_init_and_set(struct device *dev,
if (engine->rt) {
dev_info(dev, "will run requests pump with realtime priority\n");
- sched_setscheduler(engine->kworker->task, SCHED_FIFO, ¶m);
+ sched_set_fifo(engine->kworker->task);
}
return engine;