summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinda Chen <minda.chen@starfivetech.com>2023-10-26 11:46:49 +0300
committerMinda Chen <minda.chen@starfivetech.com>2023-11-06 14:36:13 +0300
commit5322763afa20323701d14a95e2e07a5db3ae48b7 (patch)
tree86a34db254b0ba0dc12c3f2b87eb86e057fa33af
parent5cbe44ac9b1fe85bf136c197de241e084cc16d4b (diff)
downloadlinux-rt-linux-release.tar.xz
cpupri: a work around for non-rt test panicRTLINUX_5.15_v0.1.0rt-linux-release
kernel BUG at kernel/sched/cpupri.c:151! The same issue can be seen in link. https://www.spinics.net/lists/kernel/msg4184866.html Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
-rw-r--r--kernel/sched/cpupri.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c
index d583f2aa744e..c582956ee634 100644
--- a/kernel/sched/cpupri.c
+++ b/kernel/sched/cpupri.c
@@ -60,6 +60,9 @@ static int convert_prio(int prio)
case MAX_RT_PRIO:
cpupri = CPUPRI_HIGHER; /* 100 */
break;
+ default:
+ cpupri = CPUPRI_NORMAL;
+ break;
}
return cpupri;