27 lines
976 B
Diff
27 lines
976 B
Diff
From 6046a51b2d08c5fc2fc1099e96549cdced3642d5 Mon Sep 17 00:00:00 2001
|
|
From: Sven-Ola Tuecke <sven-ola@gmx.de>
|
|
Date: Sun, 25 Jan 2026 22:14:57 +0100
|
|
Subject: [PATCH] Spacemit: lower kthread loop speed to 1 sec
|
|
|
|
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
|
|
---
|
|
drivers/remoteproc/k1x-rproc.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/remoteproc/k1x-rproc.c b/drivers/remoteproc/k1x-rproc.c
|
|
index 8d0c318b5..5aa506fbb 100644
|
|
--- a/drivers/remoteproc/k1x-rproc.c
|
|
+++ b/drivers/remoteproc/k1x-rproc.c
|
|
@@ -276,7 +276,7 @@ static int __process_theread(void *arg)
|
|
struct mbox_client *cl = arg;
|
|
struct rproc *rproc = dev_get_drvdata(cl->dev);
|
|
struct spacemit_mbox *mb = container_of(cl, struct spacemit_mbox, client);
|
|
- struct sched_param param = {.sched_priority = 0 };
|
|
+ struct sched_param param = {.sched_priority = MAX_RT_PRIO - 1 };
|
|
|
|
mb->kthread_running = true;
|
|
ret = sched_setscheduler(current, SCHED_FIFO, ¶m);
|
|
--
|
|
2.34.1
|
|
|