process-util: drop unused sched_priority_is_valid()

This commit is contained in:
Mike Yuan
2025-12-20 18:38:56 +01:00
parent 4dcbfbb1ad
commit eb17c37df7
2 changed files with 0 additions and 5 deletions
-4
View File
@@ -1251,10 +1251,6 @@ bool sched_policy_is_valid(int i) {
return IN_SET(i, SCHED_OTHER, SCHED_BATCH, SCHED_IDLE, SCHED_FIFO, SCHED_RR, SCHED_EXT);
}
bool sched_priority_is_valid(int i) {
return i >= 0 && i <= sched_get_priority_max(SCHED_RR);
}
bool sched_policy_supported(int policy) {
return sched_get_priority_min(policy) >= 0;
}