VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Minda Chen <minda.chen@starfivetech.com> 2023-10-26 16:46:49 +0800 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:36:13 +0800 commit: 5322763afa20323701d14a95e2e07a5db3ae48b7 parent: 5cbe44ac9b1fe85bf136c197de241e084cc16d4b
Commit Summary:
cpupri: a work around for non-rt test panic
Diffstat:
1 file 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;