sched.h: add SCHED_BATCH and SCHED_IDLE definition

Resolve undefined compile-time issues encountered when porting
third-party libraries.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2024-06-17 19:47:40 +08:00 committed by Alan Carvalho de Assis
parent 3fa5466077
commit d53d7d6c34

View file

@ -46,6 +46,8 @@
#define SCHED_FIFO 1 /* FIFO priority scheduling policy */ #define SCHED_FIFO 1 /* FIFO priority scheduling policy */
#define SCHED_RR 2 /* Round robin scheduling policy */ #define SCHED_RR 2 /* Round robin scheduling policy */
#define SCHED_SPORADIC 3 /* Sporadic scheduling policy */ #define SCHED_SPORADIC 3 /* Sporadic scheduling policy */
#define SCHED_BATCH 4 /* Batch scheduling policy */
#define SCHED_IDLE 5 /* Idle scheduling policy */
/* Maximum number of SCHED_SPORADIC replenishments */ /* Maximum number of SCHED_SPORADIC replenishments */