]> git.baikalelectronics.ru Git - kernel.git/commit
uapi/linux/prctl: provide macro definitions for the PR_SCHED_CORE type argument
authorEugene Syromiatnikov <esyr@redhat.com>
Wed, 25 Aug 2021 17:06:13 +0000 (19:06 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 29 Sep 2021 11:00:05 +0000 (13:00 +0200)
commitd4357949fceba4869c9325d08336375c572cfcb2
tree8831e8255d83b58f047a7cae374fc1ab089b68b1
parent62d0c3c91d43890e76d06eab873e9ff46a58308c
uapi/linux/prctl: provide macro definitions for the PR_SCHED_CORE type argument

Commit 42721f477b41777a ("sched: prctl() core-scheduling interface")
made use of enum pid_type in prctl's arg4; this type and the associated
enumeration definitions are not exposed to userspace.  Christian
has suggested to provide additional macro definitions that convey
the meaning of the type argument more in alignment with its actual
usage, and this patch does exactly that.

Link: https://lore.kernel.org/r/20210825170613.GA3884@asgard.redhat.com
Suggested-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Complements: 42721f477b41777a ("sched: prctl() core-scheduling interface")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Documentation/admin-guide/hw-vuln/core-scheduling.rst
include/uapi/linux/prctl.h
kernel/sched/core_sched.c