>From eb66326ae02924ff2b34e7aa19402b1155a8b21c Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 21 Sep 2021 19:52:02 +0000 Subject: [PATCH 03/20] sys/prctl.h: add PR_SCHED_CORE from linux v5.14 see linux commit 7ac592aa35a684ff1858fb9ec282886b9e3575ac sched: prctl() core-scheduling interface --- include/sys/prctl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/sys/prctl.h b/include/sys/prctl.h index 087a75c9..a0c2436e 100644 --- a/include/sys/prctl.h +++ b/include/sys/prctl.h @@ -177,6 +177,13 @@ struct prctl_mm_map { #define PR_PAC_SET_ENABLED_KEYS 60 #define PR_PAC_GET_ENABLED_KEYS 61 +#define PR_SCHED_CORE 62 +#define PR_SCHED_CORE_GET 0 +#define PR_SCHED_CORE_CREATE 1 +#define PR_SCHED_CORE_SHARE_TO 2 +#define PR_SCHED_CORE_SHARE_FROM 3 +#define PR_SCHED_CORE_MAX 4 + int prctl (int, ...); #ifdef __cplusplus -- 2.35.1